JosephusPaye / Keen-UI

A lightweight Vue.js UI library with a simple API, inspired by Google's Material Design.

Home Page:https://josephuspaye.github.io/Keen-UI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can we select an empty value?

madatan opened this issue · comments

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?

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