tom-select
tom-select copied to clipboard
[Bug]: Tom select should copy aria-label attribute to its cloned element
Bug description
When you apply tom-select to an input that has an aria-label attribute, it does not copy that attribute to the newly created element. This causes Screen readers to not correctly "speak" the field purpose.
Expected behavior
The element that is created by tom-select should carry the aria-label attribute over.
Steps to reproduce
- Create a simple input element with aria-label:
<input id="test" aria-label="Test description" />
- Add TomSelect to it:
new TomSelect("#test");
You will see that aria-label is not copied to the new element.
Additional context
- Browser Chrome