esentis / multiple_search_selection

A highly customizable multiple selection widget with fuzzy search functionality.
https://pub.dev/packages/multiple_search_selection
BSD 3-Clause "New" or "Revised" License
11 stars 13 forks source link

Initial Value still shown in Show select Items #18

Closed chhily closed 1 year ago

chhily commented 1 year ago

Current Behavior

A clear and concise description of the behavior.

Expected behavior/code

A clear and concise description of what you expected to happen (or code).

Environment

Possible Solution

Only if you have suggestions on a fix for the bug

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

esentis commented 1 year ago

Hello there, thanks for using my library and for filling this issue. However, I don't know if I understand the issue. Can you please provide an example ?

chhily commented 1 year ago

Hey, thanks for replied back

https://user-images.githubusercontent.com/106373333/209596384-acb371c1-ceaf-4f54-9df3-5de46f339096.mp4

As you see in vid above, It shown Vegetable and Fruit as Initial value but it is still show you to select in Show Item, Dialog.

Once again great packet!

esentis commented 1 year ago

Ok I think I've got it. Are you sure the items parameter doesn't have the same items as initialPickedItems ? The package doesn't automatically exclude the items of initialPickedItems from the items. If this is the case, you can try filtering out the items to exclude the initialPickedItems and you are good to go. Some people may want to have dublicates in the list, this is the reason I'm not the one doing the filtering.

If the issue is still not resolved, please provide the code to check out what initialPickedItems & items you are passing to the widget.

chhily commented 1 year ago

Got it, what seem to be problem is I initialed it as ID not an actual Item in value field. Thanks for help!