mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 06:43:01 +08:00
Update AvatarEditor.js onchange to oninput (#1570)
onchange does not work in IE11 and other IE browsers. This change works with all modern browsers as well.
This commit is contained in:
parent
1129e1333a
commit
9ac54429d0
|
@ -150,7 +150,7 @@ export default class AvatarEditor extends Component {
|
|||
const user = this.props.user;
|
||||
const $input = $('<input type="file">');
|
||||
|
||||
$input.appendTo('body').hide().click().on('change', e => {
|
||||
$input.appendTo('body').hide().click().on('input', e => {
|
||||
this.upload($(e.target)[0].files[0]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user