We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ea1d39 commit dfad19fCopy full SHA for dfad19f
examples/index.html
@@ -19,7 +19,7 @@
19
<li role="presentation"><a id="wall-e" href="#wall-e" role="option">Wall-E</a></li>
20
</ul>
21
</form>
22
- <pre class="events"></pre>
+ <pre class="events" aria-live="polite"></pre>
23
24
<script type="module">
25
// import Combobox from '../dist/index.js'
@@ -52,7 +52,10 @@
52
53
const events = document.querySelector('.events')
54
document.addEventListener('combobox-commit', function(event) {
55
- events.append(`combobox-commit event on ${event.target.textContent}\n`)
+ events.append(`${event.target.textContent} committed, combobox-commit event fired\n`)
56
+ list.hidden = true
57
+ comboboxController.clearSelection()
58
+ comboboxController.stop()
59
})
60
</script>
61
</body>
0 commit comments