lew-ui 2.7.25 → 2.7.26
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 +4 -2
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29752,11 +29752,13 @@ function showMenu(e, options, trigger) {
|
|
|
29752
29752
|
const { instance } = window.LewContextMenu;
|
|
29753
29753
|
if (!instance)
|
|
29754
29754
|
return;
|
|
29755
|
+
instance.hide();
|
|
29755
29756
|
const currentContent = instance.props.content;
|
|
29756
29757
|
if (currentContent) {
|
|
29757
|
-
|
|
29758
|
+
setTimeout(() => {
|
|
29759
|
+
destroyContextMenu(currentContent);
|
|
29760
|
+
}, MENU_SHOW_DELAY);
|
|
29758
29761
|
}
|
|
29759
|
-
instance.hide();
|
|
29760
29762
|
const menuDom = createContextMenu(options);
|
|
29761
29763
|
const getReferenceClientRect = () => {
|
|
29762
29764
|
if (trigger === "hover") {
|