File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
frontend_vue/src/components/base Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div v-clickaway =" closePopUp" class =" relative" role =" menu" >
2+
3+ <div ref =" dropdownFilter" v-clickaway =" closePopUp" class =" relative" role =" menu" >
34 <BaseButton
4- ref =" dropdownFilter "
5+ ref =" dropdownFilterButton "
56 variant =" text"
67 icon =" filter"
78 aria-label =" filter button"
@@ -50,6 +51,7 @@ const props = defineProps<{
5051const emits = defineEmits ([' update-filter-option' ]);
5152
5253const dropdownFilter = templateRef (' dropdownFilter' );
54+ const dropdownFilterButton = templateRef (' dropdownFilterButton' );
5355
5456const showAlertFilterPopup = ref (false );
5557const filterOption = ref (props .defaultFilterOption );
@@ -60,8 +62,8 @@ function capitalizeOption(option: string) {
6062
6163function closePopUp() {
6264 showAlertFilterPopup .value = false ;
63- if (dropdownFilter .value && dropdownFilter .value .$el . contains (document .activeElement )) {
64- dropdownFilter .value ?.$el ?.focus ();
65+ if (dropdownFilter .value && dropdownFilter .value .contains (document .activeElement )) {
66+ dropdownFilterButton .value ?.$el ?.focus ();
6567 }
6668}
6769
You can’t perform that action at this time.
0 commit comments