Open solo-framework opened 4 years ago
For me it worked simply by adding autoFocus
directly to the this.inputRef.getInputDOMNode().focus();
.
Credits by @duhwcarvalho
This is documented: https://github.com/sanniassin/react-input-mask/tree/v2#inputref--function
I got solution by using javascript html passing id and try { window.document.getElementById("expiryDtId").focus(); } catch (error) { console.error(error); } works for me
Could you show me an example how to set focus on masked input text? I treid autoFocus={true} but it doesn't work