JosephusPaye / Keen-UI

A lightweight Vue.js UI library with a simple API, inspired by Google's Material Design.
https://josephuspaye.github.io/Keen-UI/
MIT License
4.1k stars 440 forks source link

How can we select an empty value? #446

Closed madatan closed 5 years ago

madatan commented 5 years ago

Once the user selects a value, he/she is not able to choose a blank option in order to clear the selected value. Is there a prop for ui-select to add a blank option to the ui-select by default?

JosephusPaye commented 5 years ago

Hi @madatan,

You can add a clear button next to the select and use the clearSelection() method to clear the selection when the user clicks the button.

See this pen for an example: https://codepen.io/JosephusPaye/pen/dEXYzM

madatan commented 5 years ago

Hi Josephus, Thanks for the recommendation, i implemented as per your suggestion. However, the possibility to choose an empty value would be great in the future. Regards,Georgiana  On Saturday, May 11, 2019, 2:02:13 PM GMT+3, Josephus Paye II notifications@github.com wrote:

Hi @madatan,

You can add a clear icon button next to the Select and use the clearSelection method

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.