@dataloop-ai/components 0.19.4 → 0.19.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -169,10 +169,11 @@ export default defineComponent({
169
169
  },
170
170
  /**
171
171
  * the % of the parent element that triggers the tooltips visibility
172
+ * @default 0 - no hide occurs when trigger % is 0
172
173
  */
173
174
  triggerPercentage: {
174
175
  type: Number,
175
- default: 1
176
+ default: 0
176
177
  }
177
178
  },
178
179
  emits: [...useModelToggleEmits, 'click', 'escapekey', 'close-button-click'],
@@ -421,12 +421,12 @@ export default defineComponent({
421
421
  return
422
422
  }
423
423
 
424
- const isAnchorElVisible = await CheckAnchorElVisibility(
425
- anchorEl.value,
426
- {
427
- triggerPercentage: props.triggerPercentage
428
- }
429
- )
424
+ const isAnchorElVisible =
425
+ props.triggerPercentage === 0
426
+ ? true
427
+ : await CheckAnchorElVisibility(anchorEl.value, {
428
+ triggerPercentage: props.triggerPercentage
429
+ })
430
430
 
431
431
  if (!isAnchorElVisible) {
432
432
  hide()