bge-ui 1.6.7 → 1.6.8
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 +5 -3
- package/package.json +1 -1
- package/src/tooltip/usePopper.ts +5 -3
package/dist/index.js
CHANGED
|
@@ -7955,9 +7955,11 @@ const usePopper = function(triggerReference, suppliedOptions = {}) {
|
|
|
7955
7955
|
};
|
|
7956
7956
|
const openWithDelay = useDebounceFn(async () => {
|
|
7957
7957
|
var _a;
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7958
|
+
if (isTargetHovered.value) {
|
|
7959
|
+
const updated = await ((_a = popperInstance.value) == null ? void 0 : _a.update());
|
|
7960
|
+
placementState.value = (updated == null ? void 0 : updated.placement) || options.placement;
|
|
7961
|
+
isOpened.value = true;
|
|
7962
|
+
}
|
|
7961
7963
|
}, options.openDelay);
|
|
7962
7964
|
const closeWithDelay = useDebounceFn(() => {
|
|
7963
7965
|
if (options.hover === false || options.interactive === false) {
|
package/package.json
CHANGED
package/src/tooltip/usePopper.ts
CHANGED
|
@@ -198,9 +198,11 @@ const usePopper = function (triggerReference, suppliedOptions: Options = {}) {
|
|
|
198
198
|
* Handle the opening of the tooltip with delay
|
|
199
199
|
*/
|
|
200
200
|
const openWithDelay = useDebounceFn(async () => {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
if (isTargetHovered.value) {
|
|
202
|
+
const updated = await popperInstance.value?.update();
|
|
203
|
+
placementState.value = updated?.placement || options.placement;
|
|
204
|
+
isOpened.value = true;
|
|
205
|
+
}
|
|
204
206
|
}, options.openDelay);
|
|
205
207
|
|
|
206
208
|
/**
|