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

bug in defaultOption #103

Open
tarunkota opened this issue Jan 18, 2024 · 2 comments
Open

bug in defaultOption #103

tarunkota opened this issue Jan 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tarunkota
Copy link

Even when save="value", the default setSelected is sending key instead of value.

@sekizlipenguen
Copy link

There is a bug in multiple selection. When I changed it as follows, it solved it, but an update is required.

MultipleSelectList.tsx

     React.useEffect(() => {
         setSelectedVal(defaultOption)
     },[defaultOption])

Screenshot 2024-01-29 at 23 50 55

defaultOption = []

const [selectedval, setSelectedVal] = React.useState(defaultOption);

The project is nice, but it's terrible that it was published without checking and that so many people are trying to find a solution here.

@danish1658

@danish1658 danish1658 self-assigned this Mar 20, 2024
@danish1658 danish1658 added the bug Something isn't working label Mar 20, 2024
@sarojdey
Copy link

sarojdey commented Sep 9, 2024

any update on this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants