form icon indicating copy to clipboard operation
form copied to clipboard

Problem using useField with Material-ui select component

Open aabeborn opened this issue 5 years ago • 0 comments

Working with useForm and useField and the Material-ui select component i've noticed a bad behaviour caused by the onBlur function.

When I click the select to select a value, the focus pass to the custom dropdown select menu from the real select. This cause a form rerender (the field's isTouched prop change value) which can cause performance problem with big select components.

Is there any way to avoid this behaviour ?

aabeborn avatar Jun 04 '20 15:06 aabeborn