@douyinfe/semi-ui 2.43.0 → 2.43.1
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/umd/semi-ui.js +3 -6
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/_portal/index.js +1 -4
- package/lib/cjs/popover/index.d.ts +1 -1
- package/lib/es/_portal/index.js +1 -4
- package/lib/es/popover/index.d.ts +1 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -19750,10 +19750,7 @@ class Portal extends external_root_React_commonjs2_react_commonjs_react_amd_reac
|
|
|
19750
19750
|
var _a, _b;
|
|
19751
19751
|
try {
|
|
19752
19752
|
let container = undefined;
|
|
19753
|
-
if (!_this.el) {
|
|
19754
|
-
_this.el = document.createElement('div');
|
|
19755
|
-
}
|
|
19756
|
-
if (!((_a = _this.state) === null || _a === void 0 ? void 0 : _a.container)) {
|
|
19753
|
+
if (!_this.el || !((_a = _this.state) === null || _a === void 0 ? void 0 : _a.container) || !Array.from(_this.state.container.childNodes).includes(_this.el)) {
|
|
19757
19754
|
_this.el = document.createElement('div');
|
|
19758
19755
|
const getContainer = _this.props.getPopupContainer || context.getPopupContainer || defaultGetContainer;
|
|
19759
19756
|
const portalContainer = getContainer();
|
|
@@ -22267,7 +22264,7 @@ const popover_constants_cssClasses = {
|
|
|
22267
22264
|
};
|
|
22268
22265
|
const popover_constants_strings = {
|
|
22269
22266
|
POSITION_SET: ['top', 'topLeft', 'topRight', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'bottom', 'bottomLeft', 'bottomRight', 'leftTopOver', 'rightTopOver'],
|
|
22270
|
-
TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
|
|
22267
|
+
TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
|
|
22271
22268
|
DEFAULT_ARROW_STYLE: {
|
|
22272
22269
|
borderOpacity: '1',
|
|
22273
22270
|
backgroundColor: 'var(--semi-color-bg-3)',
|
|
@@ -60273,7 +60270,7 @@ const dropdown_constants_cssClasses = {
|
|
|
60273
60270
|
};
|
|
60274
60271
|
const dropdown_constants_strings = {
|
|
60275
60272
|
POSITION_SET: tooltip_constants_strings.POSITION_SET,
|
|
60276
|
-
TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
|
|
60273
|
+
TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
|
|
60277
60274
|
DEFAULT_LEAVE_DELAY: 100,
|
|
60278
60275
|
ITEM_TYPE: ['primary', 'secondary', 'tertiary', 'warning', 'danger']
|
|
60279
60276
|
};
|