fluent-svelte-extra 1.8.8 → 1.8.9
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.
|
@@ -42,6 +42,7 @@ export let inputLabelElement = null;
|
|
|
42
42
|
export let subMenuAnchorElement = null;
|
|
43
43
|
/** Obtains a bound DOM reference to the inner submenumenu element, which is present if the item is cascading and the submenu is visible. */
|
|
44
44
|
export let subMenuElement = null;
|
|
45
|
+
export let cascadingDelay = 500;
|
|
45
46
|
const forwardEvents = createEventForwarder(get_current_component());
|
|
46
47
|
const dispatch = createEventDispatcher();
|
|
47
48
|
const closeFlyout = getContext("closeFlyout");
|
|
@@ -80,7 +81,7 @@ function handleMouseEnter() {
|
|
|
80
81
|
setTimeout(() => {
|
|
81
82
|
if (subMenuQueue.open)
|
|
82
83
|
open = true;
|
|
83
|
-
},
|
|
84
|
+
}, cascadingDelay);
|
|
84
85
|
}
|
|
85
86
|
function handleMouseLeave(e) {
|
|
86
87
|
subMenuQueue.close = true;
|
|
@@ -88,7 +89,7 @@ function handleMouseLeave(e) {
|
|
|
88
89
|
setTimeout(() => {
|
|
89
90
|
if (subMenuQueue.close)
|
|
90
91
|
open = false;
|
|
91
|
-
},
|
|
92
|
+
}, cascadingDelay);
|
|
92
93
|
}
|
|
93
94
|
</script>
|
|
94
95
|
|
package/package.json
CHANGED