angular-tooltips icon indicating copy to clipboard operation
angular-tooltips copied to clipboard

Tooltips directive un-disables ng-disabled inputs

Open OoDeLally opened this issue 9 years ago • 8 comments

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

OoDeLally avatar Feb 16 '16 15:02 OoDeLally

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.

45kb avatar Mar 24 '16 07:03 45kb

+1 on selectbox

idangozlan avatar Jul 04 '16 07:07 idangozlan

+1

jbibla avatar Oct 27 '16 22:10 jbibla

Same problem

asso1985 avatar Jan 30 '17 14:01 asso1985

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.

leibrug avatar Apr 06 '17 13:04 leibrug

Any update on this? It is a pretty big issue. I am currently wrapping the elements, but this is still not a good solution.

RacerDelux avatar Aug 23 '17 15:08 RacerDelux

Some problem

DenniLa2 avatar Dec 04 '17 21:12 DenniLa2

I am facing the same issue, I am currently wrapping the elements, but this solutions is not working with select element.

ankurrai2602 avatar Jan 09 '18 11:01 ankurrai2602