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

Add prop to disable selecting all text in field on focus

Open sillybutt0 opened this issue 7 years ago • 0 comments

In case if user wants to add digit to input, he has to click twice on it, because first click(focus) selects whole text, which is not really UX-good.

The solution (line 213, handleFocus function):

this.props.selectAllOnFocus && event.target.setSelectionRange(selectionStart, selectionEnd);

sillybutt0 avatar Sep 07 '17 08:09 sillybutt0