- commit
- ef8e19f29a42fafdbf11502b066ec772fbffdf35
- parent
- 7ab2c99217818645f1fd479f33afa7e71418d111
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-05-02 08:59
refactor: avoid redundant ID definition
Diffstat
| M | select.js | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/select.js b/select.js
@@ -87,7 +87,7 @@ export class Select {
87 87 li.setAttribute('aria-selected', op.selected);
88 88 });
89 89 this.wrapper.setAttribute('aria-expanded', 'true');
90 -1 this.input.setAttribute('aria-activedescendant', `${this.id}_option_${this.indexMap[this.focus]}`);
-1 90 this.input.setAttribute('aria-activedescendant', options[this.focus].id);
91 91 options[this.focus].scrollIntoView({block: 'nearest'});
92 92 } else {
93 93 this.wrapper.setAttribute('aria-expanded', 'false');