Commit 45fa9d1
SELECT: Fix deselection behavior on leaving the "multiple" mode
If
- the SELECT switched from the "multiple" mode,
- it had two or more selected OPTIONs, and
- last_on_change_option_ was the first selected OPTION,
we missed to deselect OPTIONs other than the first one due to the fast
path of DeselectItemsWithoutValidation().
This CL clears last_on_change_option_ before calling
DeselectItemsWithoutValidation().
Bug: 1245443
Change-Id: Ib9cc4a4770d99ed6782edc73fd8ff1fcb3d8738b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3205138
Auto-Submit: Kent Tamura <tkent@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#928412}1 parent f5c6954 commit 45fa9d1
File tree
1 file changed
+12
-0
lines changed- html/semantics/forms/the-select-element
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
36 | 48 | | |
0 commit comments