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
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
The text was updated successfully, but these errors were encountered:
I am trying to pass Input mask into Autocomplete imported from MUI.
tested on 2. and 3. versions of the react-input-mask library.
<Autocomplete disablePortal id="combo-box-demo" options={[ { label: 'The Shawshank Redemption', year: 1994 }, { label: 'The Godfather', year: 1972 }, ]} sx={{ width: 300 }} renderInput={({ ...props }) => ( <InputMask mask="9999 / § 999 / 9" alwaysShowMask> {() => ( <TextField {...props} sx={{ flex: '0 0 160px', width: '360px' }} size="small" /> )} </InputMask> )} />
I Get error
If i alter the code
<Autocomplete disablePortal id="combo-box-demo" options={[ { label: 'The Shawshank Redemption', year: 1994 }, { label: 'The Godfather', year: 1972 }, ]} sx={{ width: 300 }} renderInput={({ disabled, ...props }) => ( <InputMask mask="9999 / § 999 / 9" alwaysShowMask disabled={disabled}> {() => ( <TextField {...props} sx={{ flex: '0 0 160px', width: '360px' }} size="small" /> )} </InputMask> )} />
I get another error
The text was updated successfully, but these errors were encountered: