Releases: viclafouch/mui-otp-input
Releases · viclafouch/mui-otp-input
V3.0.2
v3.0.1
V3.0.0
🚨 BREAKING CHANGE
- Upgrade to MUI V6 ONLY. V5 is no more compatible. If you want more features and bug fixes from this package, you should consider upgrade your codebase to V6.
Fixes
v2.0.3
- Update dependencies
v2.0.2
Breaking change
TextFieldsProps
is now : MuiTextFieldProps | ((index: number) => MuiTextFieldProps)
Now, you can add differents aria-label
, aria-describeby
, etc... depending on the index of the textfield in order to improve accessibility.
Example:
<MuiColorInput TextFieldsProps={{ size: 'small' }} />
<MuiColorInput TextFieldsProps={index => ({ size: 'small', placeholder: String(index) })} />
Chore
- Update deps
v2.0.1
v2.0.0
Breaking change
- Drop UMD version. Now only ES module version is exported.
v1.2.5
Fix
- #16 onBlur should not be triggered for each Box, but only once, when no new field is focused
New prop
onBlur
- Type:
((value: string, isCompleted: boolean) => void) | undefined
- Default:
undefined
Unlike the normal type of a TextField['onBlur']
prop, here it only triggers when no input of the component is focused.
<MuiOtpInput onBlur={() => console.log('no input of the component is focused')} />
v1.2.4
Some fixes about caret position