angular-file-upload: nvFileOver's class doesn't get removed when file is moved out from the element
Just as subj. I’m on OS X 10.9 Chrome 37.0.2062.94,
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 23 (3 by maintainers)
Commits related to this issue
- we should allow child element to trigger onDragLeave (#231) — committed to EccoTheDolphin/angular-file-upload by EccoTheDolphin 10 years ago
- Merge pull request #237 from EccoTheDolphin/master Maybe we should allow child element to trigger onDragLeave (#231) ? — committed to nervgh/angular-file-upload by nervgh 10 years ago
A simple decorator to the
nvFileOverdirective:Thanks @chaim-kedem for the workaround and @thijsw for the hint. I hope that helps.
Seems to be this line on line no. 1706 of angular-file-upload.js I wonder why it’s there…
if (event.currentTarget === this.element[0]) return;
Same here for
chromium 39.0.2138.3andMozilla Firefox 24.7.0Steps to reproduce:
javascript:
css:
html (interesting part):
When we drag file into the
buggy-drop-zonearea - background of the inner div switches to red. But when we move it out - it stays the same (instead of switching back to default).For workaround you can use something like that:
I have the same issue, and this is my workaround.