Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

ngHide and ngShow ignored #23

Closed
nsanitate opened this issue Jun 5, 2013 · 5 comments
Closed

ngHide and ngShow ignored #23

nsanitate opened this issue Jun 5, 2013 · 5 comments

Comments

@nsanitate
Copy link

Hi,
when I declare an option with ngShow or ngHide directives, select2 ignores the condition and always shows the option.

@ProLoser
Copy link
Member

ProLoser commented Jun 5, 2013

Wrap it in a div or put the hide/show on a parent DOM element. Select2 creates a second DOM element and we are currently not bothering with porting the properties over.

@ProLoser ProLoser closed this as completed Jun 5, 2013
@PeteOyable
Copy link

Hi,
I am having the same problem, and followed your advice but avent when the ng-show directive is on a parent element, it does not work for me : /

Do you have any idea why ?

@ProLoser
Copy link
Member

Can you create a fiddle?

@ProLoser ProLoser reopened this Jun 28, 2013
@PeteOyable
Copy link

Hey,

First thank you for answering this fast, I've just done e fiddle and ... It works : /
Can't fint out why !

Here's the link : http://jsfiddle.net/XSSYk/1/

This example works pretty fine ( some pictures are missing, but it works )

I don't know why it this isn't working for me.

I keep working on it.

@ProLoser ProLoser closed this as completed Jul 1, 2013
@verdi327
Copy link

verdi327 commented Jun 9, 2014

What do you mean by wrap it in a div? I have wrapped the option in a div and I have put the ng-show on the div, however I am still seeing the option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants