We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6011780 commit 84ce505Copy full SHA for 84ce505
.changeset/stale-colts-pretend.md
@@ -0,0 +1,5 @@
1
+---
2
+"@ensembleui/react-runtime": patch
3
4
+
5
+Prevent propagation of popupmenu items
packages/runtime/src/widgets/PopupMenu.tsx
@@ -179,7 +179,8 @@ export const PopupMenu: React.FC<PopupMenuProps> = ({
179
}, [namedData, values?.items]);
180
181
const handleMenuItemClick = useCallback<NonNullable<MenuProps["onClick"]>>(
182
- ({ key }) => {
+ ({ key, domEvent }) => {
183
+ domEvent.stopPropagation();
184
const mapKey = join(tail(key.split("_")), "_");
185
const item = itemsMap.get(mapKey);
186
action?.callback({ value: item });
0 commit comments