File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,21 +279,13 @@ const closeDropdown = () => {
279279 if (pg ) selectedGroupName .value = name
280280}
281281
282- const handleClickOutside = (event : MouseEvent ) => {
283- if (pickerRef .value && ! pickerRef .value .contains (event .target as Node )) {
284- if (isOpen .value ) closeDropdown ()
285- }
286- }
287-
288282const onFocusOut = (e : FocusEvent ) => {
289283 if (! pickerRef .value ?.contains (e .relatedTarget as Node )) {
290284 if (isOpen .value ) closeDropdown ()
291285 }
292286}
293287
294288onMounted (async () => {
295- document .addEventListener (' mousedown' , handleClickOutside )
296-
297289 // Show cached name immediately before the API call completes
298290 if (model .value && loadCachedName (model .value as string )) {
299291 applyCachedName ()
@@ -330,7 +322,6 @@ onMounted(async () => {
330322})
331323
332324onUnmounted (() => {
333- document .removeEventListener (' mousedown' , handleClickOutside )
334325 clearTimeout (timeoutId )
335326})
336327 </script >
You can’t perform that action at this time.
0 commit comments