svelte-currency-input icon indicating copy to clipboard operation
svelte-currency-input copied to clipboard

Cursor jump

Open irt-msummers opened this issue 1 year ago • 1 comments

I am having an issue and I can't figure out what is causing the cursor to jump to the end of text input. If you just try your demo -$42,069.33 and just type in like 1 before the comma -- its ok and then 2 -- the cursor jumps to the end of the input. I tried looking at the routine where you make the call inputElement?.setSelectionRange(endCaretPosition, endCaretPosition); -- I can't figure out what it is.

Thanks, Mark

irt-msummers avatar Jul 22 '24 21:07 irt-msummers

Yeah, this is an annoying bug, there's already an issue for it https://github.com/fmaclen/svelte-currency-input/issues/66, but I haven't had time to look into it yet.

fmaclen avatar Jul 24 '24 03:07 fmaclen

Closing because it's a duplicate of #66

fmaclen avatar Nov 01 '24 21:11 fmaclen