Skip to content

Conversation

@web-padawan
Copy link
Member

Description

Depends on #8301

Fixes #8067
Fixes #3645

Changed the MSCB logic to discard custom value from the internal combo-box on input blur with Tab or outside click.
This would require user to explicitly commit custom value by pressing Enter after typing the filter in the input.

Type of change

  • Bugfix

@web-padawan web-padawan force-pushed the fix/mscb-ignore-custom-value branch from ebd3d49 to a438139 Compare December 10, 2024 11:59
@web-padawan web-padawan requested a review from vursen December 10, 2024 12:13
@vursen
Copy link
Contributor

vursen commented Dec 10, 2024

This change also prevents selection of list items on outside click and blur. Is that intended?

Screen.Recording.2024-12-10.at.16.17.22.mov

@web-padawan
Copy link
Member Author

This change also prevents selection of list items on outside click and blur. Is that intended?

Checked this and it's also prevented in earlier versions e.g. 24.4 and 23.5 without recent fixes, so IMO yes, it's intended.

@web-padawan
Copy link
Member Author

Added tests to verify that focused item isn't selected on blur / outside click.

@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit 2deab65 into main Dec 10, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/mscb-ignore-custom-value branch December 10, 2024 12:50
web-padawan added a commit that referenced this pull request Dec 10, 2024
…) (#8313)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MultiSelectComboBox keepFilter mode behavior is not consistent [multi-select-combo-box] Focus out should not commit value

4 participants