material icon indicating copy to clipboard operation
material copied to clipboard

md-select not working with ng-disabled

Open iRealNirmal opened this issue 11 years ago • 18 comments

if ng-disabled is false still md-select is not opening

iRealNirmal avatar Feb 27 '15 09:02 iRealNirmal

+1 I have the same issue (v0.8.1). Nothing show up when clicking to expand the select when it have a ng-disabled attribute

bOOm-X avatar Feb 27 '15 12:02 bOOm-X

I am having the same issue. I am displaying the option Dynamically, and I am able to see the list of Item in my view, but not in a section modal format.

sireskay avatar Feb 27 '15 16:02 sireskay

Duplicate of #1674.

ngraef avatar Feb 27 '15 16:02 ngraef

Have you tried using ng-attr-disabled? I have used this attribute with a secondary md-select that is dynamically populated. This could be a workaround until ng-disabled is supported.

Here is a sample: ng-attr-disabled="{{ foo == '' ? 'disabled' : undefined }}"

b-crone avatar Feb 27 '15 17:02 b-crone

Duplicate of #1674, and subsequently #1646.

rschmukler avatar Feb 27 '15 21:02 rschmukler

@rschmukler is issue solved now? need to take latest version of build ?

iRealNirmal avatar Mar 04 '15 06:03 iRealNirmal

I tested the 0.8.2 version and the issue is still present. I did not test at @head

bOOm-X avatar Mar 04 '15 09:03 bOOm-X

tested in 0.8.3 and it s working now !

Thanks !

bOOm-X avatar Mar 04 '15 09:03 bOOm-X

thanks for your info @bOOm-X

iRealNirmal avatar Mar 05 '15 05:03 iRealNirmal

I tested in 0.8.3 and the bug is still present.

tylerfloyd avatar Mar 09 '15 22:03 tylerfloyd

@tylerfloyd Do you have a code sample? This was fixed in 60514054984c3d1c5577c5150e80e7ca9e3a4083 and works for me.

ngraef avatar Mar 09 '15 22:03 ngraef

Not at the moment but, I am updating a scope variable to be true or false from a directive.

tylerfloyd avatar Mar 09 '15 23:03 tylerfloyd

@ngraef Created a new test page and cannot replicate. Must be something else in the code. Thanks!

tylerfloyd avatar Mar 09 '15 23:03 tylerfloyd

@ngraef I can not say as I have not checked it yet.

iRealNirmal avatar Mar 10 '15 02:03 iRealNirmal

Tested in v1.0.7 and still not working.

RossHerrera avatar Jun 30 '16 14:06 RossHerrera

@RossHerrera Please file a new issue.

devversion avatar Jun 30 '16 14:06 devversion

md-select not working with disabled with fieldset.

ghost avatar Feb 24 '17 09:02 ghost

I think they forgot to include the styles for md-select with a disabled parent, here is:

[disabled] md-input-container > md-select {
    pointer-events: none;
}

[disabled] md-input-container > md-select .md-select-value {
    background-position: bottom -1px left 0;
    background-size: 4px 1px;
    background-repeat: repeat-x;
    border-bottom-color: transparent;
    color: rgba(0,0,0,0.38);
    background-image: linear-gradient(90deg,rgba(0,0,0,0.38) 0,rgba(0,0,0,0.38) 33%,transparent 0);
}

It works for me :)

Luiggi370z avatar Mar 14 '17 16:03 Luiggi370z