inputmask autoFocus propertie doesn't working

UI Components for React
Post Reply
jcruz_23
Posts: 1
Joined: 09 Aug 2022, 15:46

09 Aug 2022, 16:32

Code: Select all

                             <InputMask
                                       autoFocus={true}
                                        style={{ width: '100%' }}
                                        mask="(99) 9? 9999-9999"
                                        autoClear={false}
                                        onChange={(event) => {
                                         this.phone = event.target.value;
                                        }}
                                      />
I'm using the InputMask in a Modal, the modal should open with the focus on InputMask, but is not working

Melloware
Posts: 3299
Joined: 22 Apr 2013, 15:48

16 Aug 2022, 13:46

Can you create a small Code Sandbox reproducer so I can debug: https://codesandbox.io/s/primereact-test-forked-bbns8k
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 11.0.3 / PF Extensions 11.0.3
PrimeReact 8.0.0

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests