- commit
- f487691d9b9774b3a430e03277224b4afde38cd1
- parent
- cfe4dae4e1d4c2b02048857f83b5324148c6711b
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-11-08 15:46
trigger updateValue() on click on value
Diffstat
| M | select.js | 2 | +- |
| M | tags.js | 2 | +- |
2 files changed, 2 insertions, 2 deletions
diff --git a/select.js b/select.js
@@ -113,7 +113,7 @@ export class Select {
113 113 li.className = this.original.dataset.selectValueClass || 'select__value';
114 114 li.onclick = () => {
115 115 this.original.options[i].selected = false;
116 -1 li.remove();
-1 116 this.updateValue();
117 117 this.input.focus();
118 118 };
119 119 this.values.append(li);
diff --git a/tags.js b/tags.js
@@ -101,7 +101,7 @@ export class TagInput {
101 101 li.className = this.original.dataset.tagsValueClass || 'select__value';
102 102 li.onclick = () => {
103 103 op.selected = false;
104 -1 li.remove();
-1 104 this.updateValue();
105 105 this.input.focus();
106 106 };
107 107 this.values.append(li);