Closed eduardobarbiero closed 7 years ago
@eduardobarbiero at the moment the only way to do something like this would be to leverage the custom option templating and do something hacky. You would basically have to append a bogus option item to your data list, and switch the behavior of your template function's output for the link option
Thanks @alsoscotland
So if it is not possible to implement in this way, i believe that preventing the click on the object is also not possible, correct?
@eduardobarbiero I think you could, for example, make the action item a button, and arrest the event/stop propagation on the event after your button's action handler.
I may investigate a feature to add a footer/header to the dropdown for these types of use cases. Adding non-option items goes a little against the standard paradigm of an html select control. It'll take a little time to investigate the implications for keyboard accessibility
@eduardobarbiero I have decided not to implement this at this time because adding actionable elements which are not select options goes a bit against the select-control's normal paradigm
Hello People, Is it possible to create a last element with a non-selectable option but an action? Ex:
Thanks.