You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the initial focus, onFocus is called 4 times. On initial blur, onFocus is called 2 more times and onBlur is not called. On second blur, onBlur is called.
Expected behavior
On initial focus, onFocus should be called once and not again until component is blurred and refocused. onBlur should be called when input is initially blurred.
Context
I have a code associated to with onFocus event that is being called 4 times when I expect it to be called once.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: mui select onfocus multiple times
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Steps:
Current behavior
On the initial focus, onFocus is called 4 times. On initial blur, onFocus is called 2 more times and onBlur is not called. On second blur, onBlur is called.
Expected behavior
On initial focus, onFocus should be called once and not again until component is blurred and refocused. onBlur should be called when input is initially blurred.
Context
I have a code associated to with onFocus event that is being called 4 times when I expect it to be called once.
Your environment
npx @mui/envinfo
Search keywords: mui select onfocus multiple times
The text was updated successfully, but these errors were encountered: