@dataloop-ai/components 0.19.102 → 0.19.103

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.102",
3
+ "version": "0.19.103",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -4,8 +4,8 @@
4
4
 
5
5
  .dl-table {
6
6
  .vertical-border {
7
- border-left: 1px solid var(--dl-color-medium);
8
- border-right: 1px solid var(--dl-color-medium);
7
+ border-left: 1px solid var(--dl-color-separator);
8
+ border-right: 1px solid var(--dl-color-separator);
9
9
  }
10
10
 
11
11
  .inner-th {
@@ -382,14 +382,19 @@ export default defineComponent({
382
382
  }
383
383
  }
384
384
 
385
+ const autoCloseTimeout = ref(null)
386
+
385
387
  function onAutoClose(e: MouseEvent) {
386
388
  // if auto-close, then the ios double-tap fix which
387
389
  // issues a click should not close the menu
388
390
  avoidAutoClose = conditionalHandler(
389
391
  !avoidAutoClose,
390
392
  () => {
391
- closePortalMenus(proxy, e)
392
- emit('click', e)
393
+ clearTimeout(autoCloseTimeout.value)
394
+ autoCloseTimeout.value = setTimeout(() => {
395
+ closePortalMenus(proxy, e)
396
+ emit('click', e)
397
+ }, 50)
393
398
  },
394
399
  avoidAutoClose
395
400
  ) as boolean