Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update SelectList.tsx #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

update SelectList.tsx #69

wants to merge 2 commits into from

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