Skip to content

Commit 56ca5b6

Browse files
committed
Add a note about using labels
1 parent 33e1353 commit 56ca5b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ list.addEventListener('combobox-commit', function(event) {
5454
})
5555
```
5656

57+
**⚠ Note:** When using `<label>` + `<input>` as options, please listen on `change` instead of `combobox-commit`.
58+
59+
When a label is clicked on, `click` event is fired from both `<label>` and its associated input `label.control`. Since combobox does not know about the control, `combobox-commit` cannot be used as an indicator of the item's selection state.
60+
5761
## Development
5862

5963
```

0 commit comments

Comments
 (0)