bietkul / react-reactive-form

Angular like reactive forms in React.
MIT License
309 stars 32 forks source link

onBlur callback on FieldControl #17

Closed omerkhawaja closed 6 years ago

omerkhawaja commented 6 years ago

Let's say I have a text input that on onFocus triggers a menu popover to be visible, and when onBlur occurs, the menu is removed.

Is there a way to use onFocus for this type of functionality? I'm not seeing onFocus support in the documentation.

It appears that updateOn: PropTypes.oneOf(['change', 'blur', 'submit']) doesn't support focus, but I thought I'd ask.

bietkul commented 6 years ago

Yes, there is no support for onFocus in RRF now.