Cleanup aria tag handling added in StatelessTags.

See comments at https://github.com/galaxyproject/galaxy/pull/16159#discussion_r1210464678
This commit is contained in:
John Chilton
2023-06-02 10:08:17 -04:00
committed by Dannon Baker
parent c96e2cd964
commit 0f5fc519e1
@@ -63,12 +63,10 @@ const editing = ref(false);
function onOpen() {
editing.value = true;
multiselectElement.value?.$el.setAttribute("aria-expanded", "true");
}
function onClose() {
editing.value = false;
multiselectElement.value?.$el.setAttribute("aria-expanded", "false");
}
const multiselectElement: Ref<Multiselect | null> = ref(null);
@@ -126,7 +124,7 @@ function onTagClicked(tag: string) {
:multiple="true"
:taggable="true"
:close-on-select="false"
aria-expanded="false"
:aria-expanded="editing ? 'true' : 'false'"
@tag="onAddTag"
@input="onInput"
@open="onOpen"