Skip to content

Conversation

HaythamT95
Copy link

Fixed this bug that I issued earlier in (SelectList)
Let's say that you have the data = [
{key:'1', value:'Apple'},
{key:'2', value:'Appliances'},
{key:'3', value:'Cameras'},
{key:'4', value:'Computers'},
{key:'5', value:'Vegetables'},
{key:'6', value:'Diary Products'},
{key:'7', value:'Drinks'},
]
,If you enter "C" and the click on close (x) and try to use the selectlist again, you will receive only the data you searched for earlier and the not whole data. It means that I will only see ['Cameras', 'Computers'].

Also Added a functionality to clear selected value (in SelectList) by adding new key to the data. new key="000", value="Clear", and added icon to the clear with read color.

HaythamT95 added 2 commits May 3, 2023 12:02
Fixed this bug that I issued earlier in (SelectList)
Let's say that you have the data = [
{key:'1', value:'Apple'},
{key:'2', value:'Appliances'},
{key:'3', value:'Cameras'},
{key:'4', value:'Computers'},
{key:'5', value:'Vegetables'},
{key:'6', value:'Diary Products'},
{key:'7', value:'Drinks'},
]
,If you enter "C" and the click on close (x) and try to use the selectlist again, you will receive only the data you searched for earlier and the not whole data. It means that I will only see ['Cameras', 'Computers'].

Also Added a functionality to clear selected value (in SelectList)  by adding new key to the data. new key="000", value="Clear", and added icon to the clear with read color.
@mkshov
Copy link

mkshov commented Jun 5, 2024

how to clear selected item?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants