You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I noticed in your code when creating the hidden input for doing the actual upload, it copies over every attribute from whatever element the directive is placed on.
My specific issue at hand is that the additional classes messes up my styling despite the hidden input being hidden and given position absolute. I am wondering if it were possible to exclude classes from being copied over when generating this element, or whether there is a specific reason classes must also be included. Also I'm guessing it would be a good idea to exclude copying id attribute as well.
For those curious about the styling issue, it's because I am using bootstrap.css and it has the following CSS:
<inputclasses="btn btn-block" ... /> <!-- hidden but still causes below element to have a margin-top --><divclasses="btn btn-block" ng-file-select...>Upload</div>
The text was updated successfully, but these errors were encountered:
So I noticed in your code when creating the hidden input for doing the actual upload, it copies over every attribute from whatever element the directive is placed on.
My specific issue at hand is that the additional classes messes up my styling despite the hidden input being hidden and given position absolute. I am wondering if it were possible to exclude classes from being copied over when generating this element, or whether there is a specific reason classes must also be included. Also I'm guessing it would be a good idea to exclude copying
id
attribute as well.For those curious about the styling issue, it's because I am using bootstrap.css and it has the following CSS:
So having something like this:
results in:
The text was updated successfully, but these errors were encountered: