Skip to content
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

Doesn't work "resetOnClick" #499

Closed
grvldmr opened this issue Jan 11, 2015 · 3 comments
Closed

Doesn't work "resetOnClick" #499

grvldmr opened this issue Jan 11, 2015 · 3 comments

Comments

@grvldmr
Copy link

grvldmr commented Jan 11, 2015

i try this

<button ng-file-select ng-model="myFiles" ng-multiple="true" resetOnClick="false">Upload</button>

but file list reset after new file\files selected.

@danialfarid
Copy link
Owner

This will be removed in the next release and will be always true since Chrome by default resets the input after you select or cancel the file select popup.

@danialfarid
Copy link
Owner

So resetOnClick="false" only works for some browsers at the moment.

@danialfarid
Copy link
Owner

This option is removed since 3.0,0.
It would always consider it as true since Chrome browser fires file change when you cancel the popup. So this will make the other browsers to act the same way allowing the user to cancel the selected file by clicking cancel on the popup, and also allowing them to upload the same file again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants