fix: select combo box input text on next click after dropdown closed#11324
Conversation
093017c to
f1b2a6f
Compare
|
Updated the PR to handle the case where user selects text manually after outside click. Now, before selecting the text on click, we check if the input text is already selected (partially or fully). If there is a selection, the autoselect does not lead to selecting the whole text in order to avoid interfering with the user's intent. |
|
|
Hi @ugur-vaadin and @web-padawan, when i performed cherry-pick to this commit to 24.10, i have encountered the following issue. Can you take a look and pick it manually? |
|
Hi @ugur-vaadin and @web-padawan, when i performed cherry-pick to this commit to 24.9, i have encountered the following issue. Can you take a look and pick it manually? |



Description
Outside click on combo box does not make it lose focus. However, since the selection of input text happens on focus (see
input-control-mixin), this prevents autoselect from selecting the input text on click again. This PR makes the combo box select the input text on click once after dropdown closed if the combo box is autoselect.Fixes #11188
Type of change
Checklist