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
Hello. When I tried to use autoFocus, it behaved oddly, both in the case of the mui component and regular HTML's input. When the input is rendered, it looks blank (the first screenshot) even if it has a value, like in the code snippet, and the value appears only after the user's action, like click or key press (the second screenshot after arrow up press).
As far as I understood, this behavior is related to the philosophy of the library, but is it possible to fix it, or do I need to find a workaround?
constUsage=()=>{const[value,setValue]=useState<number|null>(12345.67);return(<NumberFieldautoFocuslabel="A number field"value={value}onChange={setValue}/>)}
The text was updated successfully, but these errors were encountered:
Hello. When I tried to use autoFocus, it behaved oddly, both in the case of the
mui
component and regular HTML'sinput
. When the input is rendered, it looks blank (the first screenshot) even if it has a value, like in the code snippet, and the value appears only after the user's action, like click or key press (the second screenshot after arrow up press).As far as I understood, this behavior is related to the philosophy of the library, but is it possible to fix it, or do I need to find a workaround?
The base component snippet
The usage of the base component
The text was updated successfully, but these errors were encountered: