-
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
ng-file-rejected-model can only trigger once with watch #519
Comments
Version 3.0.0 fixes this problem. Notice the attribute is renamed to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have code that attempts to use the ng-file-rejected-model attribute along with ng-file-drop.
There are two minor issues I have with this item:
My main concern, however, is that I can't seem to put a watch on the variable. I only get the event once if I try, ie:
This code will only allow my showRejected function to be called on the first drag and drop of an invalid file.
I thought I could instead rely only on the myFiles watch, at which time I could see if myRejFiles is also set, but in that case, myRejFiles will only contain the first item(s) from the initial failed drag and drop, and will send that even if there are no rejects this time around.
Maybe I am using this wrong, or maybe there is an issue of some sort? Sorry, I have not yet been able to spend time to debug it much further.
The text was updated successfully, but these errors were encountered: