Skip to content

Release v1.2.15

Compare
Choose a tag to compare
@marcocesarato marcocesarato released this 06 Aug 12:52
· 249 commits to master since this release

New events

  • onFocus(e) Callback that is called when the text input is focused.
  • onBlur(e) Callback that is called when the text input is blurred.
  • onKeyPress(e) Callback that is called when a key is pressed.

New props

  • maxLength number: Limits the maximum number of characters that can be entered.
  • autofocus bool: If true, focuses the input on componentDidMount.

New methods

  • isFocused() return if text input is focused
  • blur() blur text input
  • clear() clear text input
  • focus() focus text input