-
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
[patch] Directive get ng-multiple and accept attributes too early #520
Comments
Can you create a jsfiddle to show what problem you are having? |
What version of the plugin are you using? |
I use version 2.2.2 and angular 1.3.11. I use the directive into another directive. Sorry, it will be hard to create a jsfiddle. I test the demo localy with angular 1.3.11 and angular-file-upload |
I have the similar issue and I think it's because the directive doesn't update the input element when attributes change, look at this fiddle: http://jsfiddle.net/z2seogbf/1/ |
Thanks @hafezdivandari, you guided me to a solution. I just set the multiple and accept scope attributes on pre-link, see marmelab/ng-admin@55475a1?w=1 |
Since version 3.x the input file will be replaced and recompiled upon accept or multiple attributes model changes to reflect the new value for those attributes. So it should be fix since 3.0.0. |
In my application, configuration of
ng-multiple
andaccept
of theng-file-select
directive does not work.To fix that, I need to modify the
ngFileSelect
directive definition:Anyone had the same issue ?
The text was updated successfully, but these errors were encountered: