bge-ui 1.6.6 → 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 CHANGED
@@ -7955,9 +7955,11 @@ const usePopper = function(triggerReference, suppliedOptions = {}) {
7955
7955
  };
7956
7956
  const openWithDelay = useDebounceFn(async () => {
7957
7957
  var _a;
7958
- const updated = await ((_a = popperInstance.value) == null ? void 0 : _a.update());
7959
- placementState.value = (updated == null ? void 0 : updated.placement) || options.placement;
7960
- isOpened.value = true;
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) {
@@ -8276,7 +8278,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
8276
8278
  */
8277
8279
  openDelay: {
8278
8280
  type: Number,
8279
- default: 0,
8281
+ default: 500,
8280
8282
  validator: (value) => {
8281
8283
  const isPositive = value >= 0;
8282
8284
  if (!isPositive) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -84,7 +84,7 @@ const props = defineProps({
84
84
  */
85
85
  openDelay: {
86
86
  type: Number,
87
- default: 0,
87
+ default: 500,
88
88
  validator: (value: number) => {
89
89
  const isPositive = value >= 0;
90
90
  if (!isPositive) {
@@ -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
- const updated = await popperInstance.value?.update();
202
- placementState.value = updated?.placement || options.placement;
203
- isOpened.value = true;
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
  /**