@dataloop-ai/components 0.20.87 → 0.20.89

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.20.87",
3
+ "version": "0.20.89",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -31,7 +31,7 @@
31
31
  "
32
32
  :overflow="overflow"
33
33
  :tooltip="tooltip"
34
- @click="onClickHide"
34
+ @click.capture="onClickHide"
35
35
  />
36
36
  <dl-button
37
37
  class="dl-button-dropdown__arrow-container"
@@ -275,12 +275,13 @@ export default defineComponent({
275
275
  return
276
276
  }
277
277
 
278
- const isAnchorElVisible = await CheckAnchorElVisibility(
279
- anchorEl.value,
280
- {
281
- triggerPercentage: props.triggerPercentage
282
- }
283
- )
278
+ const isAnchorElVisible =
279
+ props.triggerPercentage === 0
280
+ ? true
281
+ : await CheckAnchorElVisibility(anchorEl.value, {
282
+ triggerPercentage: props.triggerPercentage
283
+ })
284
+
284
285
  if (!isAnchorElVisible) {
285
286
  hide()
286
287
  return