Mbanolas February 2016

paper-dropdown-menu - how to collapse dropdown menu when repeat a selection

When you repeat the same selection item, already selected, the dropdown menu remains open. I would like to collapse the menu as it occurs when you select a different item. You can check this behavior in the demo. How can I modify the element to collapse the menu in any case?. Thanks.

Answers


Günter Zöchbauer February 2016

The paper-dropdown-menu has an 'opened' property. You can listen on click of the dropdown content and if opened is true, set it to false.

Post Status

Asked in February 2016
Viewed 1,951 times
Voted 4
Answered 1 times

Search




Leave an answer