PolymerElements / iron-selector

Manages a list of elements that can be selected
32 stars 55 forks source link

It would be nice if there was a way of vetoing the selection #111

Closed rasto68 closed 8 years ago

rasto68 commented 8 years ago

We are using iron-selector in a simple accordion menu type control but occasionally we need to be able to cancel a selection, iron-selector doesn't currently support this (via the API I can see anyway) leading to some annoying logic at slightly higher level in the code.

bicknellr commented 8 years ago

Hi, @rasto68, you can listen for iron-activate events and cancel them to prevent the selection from occuring (code, docs). Here's a demo. Let me know if this isn't what you meant or is insufficient and I'll reopen; otherwise, thanks for filing!

rasto68 commented 8 years ago

Thanks Russell that looks like it could help :)