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

Multiselect item on 0 index is getting selected #2012

Closed
Nirav4Stridely opened this issue May 4, 2021 · 4 comments
Closed

Multiselect item on 0 index is getting selected #2012

Nirav4Stridely opened this issue May 4, 2021 · 4 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Nirav4Stridely
Copy link

I have just recently updated primereact version from 6.1.0 to 6.3.0. I have found issue that Item which set on 0 is not getting selected.

can you please help me? here is my code snippet example...

My List:
var list : [{id:0, name:"All"},{id:1, name:"User 1"},{id:2, name:"User 2"},{id:3, name:"User 3"},{id:4, name:"User 4"}];

<MultiSelect id="mulUser" filter value={this.state.userIds} options={this.state.list} optionLabel="name" optionValue="id" .... />

image

@mertsincan mertsincan added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label May 4, 2021
@mertsincan
Copy link
Member

Hi,

I couldn't replicate it. Please try;
https://codesandbox.io/s/nifty-dew-of8e5?file=/src/demo/MultiSelectDemo.js

Also, could you please try it with 6.3.1?

For now, closed. If you persist problem, please reopen this ticket.

Best Regards,

@Nirav4Stridely
Copy link
Author

Nirav4Stridely commented May 5, 2021

Hello,

I have regenerate in your given link. please check update code. Also tried with 6.3.1.
https://codesandbox.io/s/pedantic-williams-3iul2?file=/src/demo/MultiSelectDemo.js

OR

You just need to update line number 13 in given code example.

const [userIds, setUserIds] = useState([0,1,2,3,4]);

I am reopening again.

@mertsincan mertsincan reopened this May 5, 2021
@mertsincan mertsincan added Type: Bug Issue contains a defect related to a specific component. and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels May 5, 2021
@mertsincan mertsincan self-assigned this May 5, 2021
@mertsincan mertsincan added this to the 6.3.2 milestone May 5, 2021
@mertsincan mertsincan changed the title Primereact V6.3.0: Multiselect item on 0 index is getting selected Multiselect item on 0 index is getting selected May 5, 2021
@mertsincan
Copy link
Member

Thanks a lot for your update! Fixed now.

Best Regards,

@Nirav4Stridely
Copy link
Author

Hello,

Thank you for the update!

can i know the release date of this fix? Because, if i go with current V6.3.0, i need to make so many changes in my project and we are about to release now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants