Skip to content

Releases: viclafouch/mui-otp-input

v1.2.2

31 Jul 11:17
Compare
Choose a tag to compare

Fixes

  • #10 onComplete is now correclty triggered on mount

v1.2.1

31 Jul 10:45
Compare
Choose a tag to compare

Fixes

  • #22 : validateChar now works correctly when onPaste is triggered

v1.2.0

31 Jul 09:03
Compare
Choose a tag to compare

Feat

  • Drop support for React 17. Version 18.0.0 is the minimal version required.

New property for TextFieldsProps object :

placeholder

  • Type: string | undefined | (index: number) => string | undefined
  • Default: undefined

Unlike the normal type of a TextField, here you can manage a distinct placeholder for each field.

<MuiOtpInput TextFieldsProps={{ placeholder: '-' }} />
<MuiOtpInput TextFieldsProps={{ placeholder: (index) => `i-${index}` }} />

v1.1.2

26 Jun 13:17
Compare
Choose a tag to compare

Fixes

  • Fix #17 : Home and End keys move the cursor correctly to the first and last position

v1.1.1

29 May 15:38
Compare
Choose a tag to compare
  • Update deps

v1.1.0

13 Mar 10:41
Compare
Choose a tag to compare

Features

  • #6 Add prop to auto-focus the first field.

autoFocus

  • Type: boolean
  • Default: false

Choose to auto focus the first input.

<MuiOtpInput autoFocus />

Thanks @pdiazdumont

v1.0.4

23 Dec 11:02
Compare
Choose a tag to compare

Fix

  • Fix #1 : Do not blur when OTP is completed