contactlab / contactlab-ui-components

DEPRECATED - Basic UI components for ContactLab UX design pattern library
http://contactlab.github.io/contactlab-pattern-library
Apache License 2.0
30 stars 8 forks source link

dropdown deselection #219

Closed gabrieleborelli closed 5 years ago

gabrieleborelli commented 5 years ago

In order to achieve the deselection from the Dropdown is used its search input box. When the search value is fully deleted a deselect event is emitted. Is client responsability to update the selected attribute with an empty value in order to reset Dropdown internal state.

Note that this feature is available only for searchable dropdowns.

ref #220

StefanoMagrassi commented 5 years ago

@gabrieleborelli please open a related issue and add a description of the feature implemented in the PR

gabrieleborelli commented 5 years ago

@StefanoMagrassi, added bare minimum tests for default properties similar to tests already present. I don't know if it's possible to test computed (without moving in libs) or the new event triggered