Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Typeahead : attribute "typeahead-is-toggled" to know if dropdown is toggled #4760

Closed
NicolasVargas opened this issue Oct 28, 2015 · 1 comment

Comments

@NicolasVargas
Copy link

Hi,

I would like to know if the dropdown is open in order to change others elements behaviour during this time.
I didn't find any clean method to succeed.
The only solution I found was to check the dropdown attribute "aria-hidden" :

angular.element('.dropdown-menu').first().attr('aria-hidden')

but I don't really like it and the attribute change is not fired by angular when we click outside the dropdown.

What do you think about adding a new attribute to typeahead in order to bind a boolean to the isOpen() intern typeahead function.

Thank you,
Nicolas VARGAS

@wesleycho
Copy link
Contributor

This seems like a reasonable request.

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

No branches or pull requests

2 participants