-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onchange is not triggered when cancel a file input #527
Comments
This part is to support cancel for browsers other than chrome. How removing it would make it work! |
sorry for not give you more details. here is it. browserChrome Mac 40.0.2214.93 (64-bit) html<input type="file" ng-multiple="true" ng-file-select ng-model="upload.files" /> js$scope.$watch 'upload.files', (n, o) ->
$log.log "watch changed to: ", n screenshotcanceled by Red Rectangle part in pic. |
What version of the plugin? Is it happening on the demo page too? |
angular-file-upload : 2.2.2 In your demo, |
This should be fixed in version 3.0.0. |
nice update. |
first i selected a file, not use drag&drop, then i remove it by cancel a input .
the
ng-model
value should be empty, but it didn't changed becausechange
event is not triggered.if i removed this part, the problem will be solved.
i dont known whether there is anything wrong with here?
your
Demo
has same problem, so you can reproduce it.The text was updated successfully, but these errors were encountered: