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

Select on Focus

Open base2arthur opened this issue 4 years ago • 1 comments

It would be good to have a select on focus as the inputEl is not exposed. function handleFocus(e) { canSetSelection = true; if(selectOnFocus){ inputEl && typeof inputEl.select === 'function' && inputEl.select() } dispatch('focus', e); }

base2arthur avatar Dec 29 '20 00:12 base2arthur

Hi! Sorry for the long response, I'm not sure how it happened, that I didn't receive a notification to my bot. Yes, sure, it's a good idea. You're welcome to send a PR

xnimorz avatar Apr 10 '21 23:04 xnimorz