mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Cleanup aria tag handling added in StatelessTags.
See comments at https://github.com/galaxyproject/galaxy/pull/16159#discussion_r1210464678
This commit is contained in:
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"
|
||||
|
||||
Reference in New Issue
Block a user