frappe-ui 0.1.249 → 0.1.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -299,11 +299,13 @@ function close() {
|
|
|
299
299
|
|
|
300
300
|
// Unified click handling for all dropdown items
|
|
301
301
|
const handleItemClick = (item: DropdownOption, event: PointerEvent) => {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
item.onClick
|
|
306
|
-
|
|
302
|
+
setTimeout(() => {
|
|
303
|
+
if (item.route) {
|
|
304
|
+
router.push(item.route)
|
|
305
|
+
} else if (item.onClick) {
|
|
306
|
+
item.onClick(event)
|
|
307
|
+
}
|
|
308
|
+
}, 75)
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
const normalizeDropdownItem = (option: DropdownOption) => {
|