Skip to content

Fix multiselect list editor duplicate selections.#4862

Open
m3ftwz wants to merge 4 commits into
tabulator-tables:masterfrom
m3ftwz:fix-multiselect-list
Open

Fix multiselect list editor duplicate selections.#4862
m3ftwz wants to merge 4 commits into
tabulator-tables:masterfrom
m3ftwz:fix-multiselect-list

Conversation

@m3ftwz
Copy link
Copy Markdown

@m3ftwz m3ftwz commented Mar 23, 2026

Description

Fixes a weird behavior with multiselect in lists

Current

Screencast.From.2026-03-23.12-07-54.mp4

Fixed

Screencast.From.2026-03-23.12-06-49.mp4

}

if(this.params.multiselect) {
this.initialValues = null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m3ftwz is this really meant to be null? could you explain a little bit, please?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azmy60 yes, initialValues is set to null after the first multiselect parse because it should only seed the initial selection once, while all later rebuilds must use currentItems as the real selected state source

@azmy60
Copy link
Copy Markdown
Collaborator

azmy60 commented Apr 7, 2026

Hey @m3ftwz , before this can be merged, would you be able to make a test for this? If it's possible, a simple test that would avoid regression is great.

@azmy60 azmy60 added the PR Needs Work The PR is a good idea, but needs some updates before it can be merged label Apr 7, 2026
@m3ftwz
Copy link
Copy Markdown
Author

m3ftwz commented Apr 22, 2026

Haven’t had much time lately, but this is on my mind, I'll test it more as soon as I can :)

@m3ftwz
Copy link
Copy Markdown
Author

m3ftwz commented May 11, 2026

@azmy60 ready, thank you for your patience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Needs Work The PR is a good idea, but needs some updates before it can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants