- commit
- 47499a5b034f8db6d46e6c790d3b95a56ec996af
- parent
- e425bb38563ff6bf15ac9521420ae2677e4c2fb0
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-03-28 05:22
close on clear similar to datalist
Diffstat
| M | select.js | 6 | +++++- |
1 files changed, 5 insertions, 1 deletions
diff --git a/select.js b/select.js
@@ -205,7 +205,11 @@ export class Select {
205 205 }
206 206
207 207 oninput(event) {
208 -1 this.open(false);
-1 208 if (this.input.value) {
-1 209 this.open(false);
-1 210 } else {
-1 211 this.close();
-1 212 }
209 213 if (Array.from(this.original.options).some(op => this.isMatch(op.label))) {
210 214 this.input.setCustomValidity('');
211 215 } else {