Skip to content

Commit ee7076a

Browse files
revert: "fix: Add delay to dropdown item click handling to prevent close glitch"
This reverts commit f89b9a6.
1 parent 07ebce7 commit ee7076a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/components/Dropdown/Dropdown.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,11 @@ function close() {
299299
300300
// Unified click handling for all dropdown items
301301
const handleItemClick = (item: DropdownOption, event: PointerEvent) => {
302-
setTimeout(() => {
303-
if (item.route) {
304-
router.push(item.route)
305-
} else if (item.onClick) {
306-
item.onClick(event)
307-
}
308-
}, 75)
302+
if (item.route) {
303+
router.push(item.route)
304+
} else if (item.onClick) {
305+
item.onClick(event)
306+
}
309307
}
310308
311309
const normalizeDropdownItem = (option: DropdownOption) => {

0 commit comments

Comments
 (0)