How can we select an empty value?
madatan opened this issue · comments
madatan commented
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?
Josephus Paye II commented
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
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.