@topconsultnpm/sdkui-react 6.20.0-dev1.48 → 6.20.0-dev1.49
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.
|
@@ -198,7 +198,10 @@ const TMContextMenu = ({ items, trigger = 'right', children, externalControl, ke
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
201
|
-
if (
|
|
201
|
+
// Close menu if item has onClick (actual action) or keepOpenOnClick is false
|
|
202
|
+
// This allows pin icon clicks (onRightIconClick) to keep menu open while
|
|
203
|
+
// clicking the item itself closes it
|
|
204
|
+
if (item.onClick || !keepOpenOnClick) {
|
|
202
205
|
handleClose();
|
|
203
206
|
}
|
|
204
207
|
}
|