Skip to content

Commit 75945eb

Browse files
committed
refactor: clear live region immediately
1 parent 7e91cd0 commit 75945eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/components/Compare/FacetSelector.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ function isCategoryNoneSelected(category: string): boolean {
2525
}
2626
2727
const liveRegionText = ref('')
28+
const clearLiveRegion = debounce(() => {
29+
liveRegionText.value = ''
30+
}, 250)
2831
const updateLiveRegion = debounce((message: string) => {
2932
liveRegionText.value = message
33+
clearLiveRegion()
3034
}, 250)
3135
3236
function selectAllFacet(category: string) {

0 commit comments

Comments
 (0)