abzubarev / web-developer-form-filler-ext

This extension is used by developers to make it easy to fill forms
MIT License
113 stars 53 forks source link

React listens for input events, not change, hence does not update state after form filler changes values #15

Closed p-decoraid closed 3 years ago

p-decoraid commented 7 years ago

I have a React component and I am using this extension to fill in some text fields.

It looks like React is listening for input events rather than change events (even though I have onChange={this.changeHandler} in my code). Hence, this extension's invocation of change and blur events does nothing for state updates in my app.

It seems that the behavior on React's side is intentional: https://github.com/facebook/react/issues/3964

Can Form Filler safely fire an input event in addition to the change event?

p-decoraid commented 7 years ago

I added onBlur handlers as a workaround but it appears that the version of the extension in chrome store does not even trigger onblur. Meaning, the only way to make form filler work with react apps right now is to create a local build from master - but then one might as well add oninput triggers.