Inferno: onChange with file input

Created on 5 Jan 2017  路  6Comments  路  Source: infernojs/inferno

I am using inferno-compat. I have used onChange on file input

<input type="file" onChange={this.handleChange}/>

This works fine with react. handleChange method is invoked. But on using inferno-compat, onChange doesn't work

bug

Most helpful comment

@programmerrrr nice spot, this is a bug in inferno-compat!

All 6 comments

Try onInput. React's is synthetic, onInput is the native trigger.

@programmerrrr nice spot, this is a bug in inferno-compat!

@lukeed Even onInput is not working with file input
@trueadm Is there any workaround until this bug is fixed?

@programmerrrr I've applied a fix to dev branch if you'd like to check it out?

@trueadm yeah!!! It's working!!

Glad to hear! Closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexichepura picture alexichepura  路  5Comments

brenr picture brenr  路  3Comments

Silviu-Marian picture Silviu-Marian  路  5Comments

xkxx picture xkxx  路  4Comments

Havunen picture Havunen  路  3Comments