angular-tooltips
angular-tooltips copied to clipboard
Tooltips directive un-disables ng-disabled inputs
Hello,
I have some inputs and buttons on my page, that I disable programmatically with ng-disabled.
But if tooltips directive is applied to it, the ng-disabled is ignored/overwritten.
Here is an example :
https://jsbin.com/fuzebifime/1/edit?html,output
Thank you
Thank you @OoDeLally sounds very weird, i would check this but i don't know where to start, i am not so experienced, i ping @wouldgo on this.
+1 on selectbox
+1
Same problem
Hi there,
I checked on this bug, and it seems that tooltips directive affects not only ng-disabled, but all AngularJS attr-directives (for example, ng-selected or ng-checked).
Example: https://jsbin.com/lekefidefi/edit?html,output
(by removing tooltips from form elements you can get these attributes working)
Solution that worked was setting priority: 110 on tooltip directive (is 1 currently, and AngularJS ones have 99-100), but it feels like shortcut for me. I'll see if I can do without changing priority.
As a workaround, I'd suggest to wrap your inputs individually in something like <div class="form-field"> and set tooltips on these parent elements.
Any update on this? It is a pretty big issue. I am currently wrapping the elements, but this is still not a good solution.
Some problem
I am facing the same issue, I am currently wrapping the elements, but this solutions is not working with select element.