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

Loses focus when used as redux state

Open GhazanfarKhan opened this issue 5 years ago • 1 comments

Hi Can any one please look into this issue. Focus moves to end due to component re-render.

https://stackoverflow.com/questions/62823513/react-input-mask-focus-position-moved-to-end-when-use-with-redux-component-reren

GhazanfarKhan avatar Jul 09 '20 21:07 GhazanfarKhan

I had the same problem, this is happening because of the underline signal ( __ ) and what I did was add the property maskPlaceholder={null} so when you loses focus (going to to another input for example) the underline mask is gone and the cursor maintains the previous state. It's working fine, at least for me.

hericlesbitencourt avatar Aug 07 '20 16:08 hericlesbitencourt