@luminescent/ui-qwik 6.4.23 → 6.4.24
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/lib/index.qwik.cjs +3 -1
- package/lib/index.qwik.mjs +3 -1
- package/package.json +2 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -688,7 +688,9 @@ const Nav = qwik.component$(({ fixed, floating, noblur, nohamburger, nodismiss,
|
|
|
688
688
|
qwik.useTask$(({ track }) => {
|
|
689
689
|
track(() => menu.value);
|
|
690
690
|
if (menu.value && !nodismiss) {
|
|
691
|
-
const onClick = () => {
|
|
691
|
+
const onClick = (e) => {
|
|
692
|
+
const target = e.target;
|
|
693
|
+
if (target?.hasAttribute("noNavDismiss")) return;
|
|
692
694
|
menu.value = false;
|
|
693
695
|
window.removeEventListener("click", onClick);
|
|
694
696
|
};
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -686,7 +686,9 @@ const Nav = component$(({ fixed, floating, noblur, nohamburger, nodismiss, color
|
|
|
686
686
|
useTask$(({ track }) => {
|
|
687
687
|
track(() => menu.value);
|
|
688
688
|
if (menu.value && !nodismiss) {
|
|
689
|
-
const onClick = () => {
|
|
689
|
+
const onClick = (e) => {
|
|
690
|
+
const target = e.target;
|
|
691
|
+
if (target?.hasAttribute("noNavDismiss")) return;
|
|
690
692
|
menu.value = false;
|
|
691
693
|
window.removeEventListener("click", onClick);
|
|
692
694
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui-qwik",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.24",
|
|
4
4
|
"description": "Luminescent UI library - Qwik",
|
|
5
5
|
"main": "./lib/index.qwik.mjs",
|
|
6
6
|
"qwik": "./lib/index.qwik.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vite-tsconfig-paths": "^6.0.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@luminescent/ui": "6.4.
|
|
53
|
+
"@luminescent/ui": "6.4.24"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "qwik build",
|