@sikka/hawa 0.1.90 → 0.1.91
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/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/DropdownMenu.tsx +9 -3
package/dist/index.js
CHANGED
|
@@ -1286,7 +1286,9 @@ var DropdownMenu = function(param) {
|
|
|
1286
1286
|
className: "flex flex-row gap-2",
|
|
1287
1287
|
onSelect: function() {
|
|
1288
1288
|
subitem.action();
|
|
1289
|
-
selectCallback
|
|
1289
|
+
if (selectCallback) {
|
|
1290
|
+
selectCallback(subitem.value);
|
|
1291
|
+
}
|
|
1290
1292
|
},
|
|
1291
1293
|
key: subIndex
|
|
1292
1294
|
}, subitem.icon && subitem.icon, subitem.label);
|
|
@@ -1300,9 +1302,13 @@ var DropdownMenu = function(param) {
|
|
|
1300
1302
|
}
|
|
1301
1303
|
if (item.action) {
|
|
1302
1304
|
item.action();
|
|
1303
|
-
selectCallback
|
|
1305
|
+
if (selectCallback) {
|
|
1306
|
+
selectCallback(item.value);
|
|
1307
|
+
}
|
|
1304
1308
|
} else {
|
|
1305
|
-
selectCallback
|
|
1309
|
+
if (selectCallback) {
|
|
1310
|
+
selectCallback(item.value);
|
|
1311
|
+
}
|
|
1306
1312
|
}
|
|
1307
1313
|
},
|
|
1308
1314
|
end: item.end
|