@dataloop-ai/components 0.19.125 → 0.19.126

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.125",
3
+ "version": "0.19.126",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -101,7 +101,7 @@
101
101
  :filter-term="filterTerm"
102
102
  :fit-content="fitContent"
103
103
  @update:model-value="handleCheckboxUpdate"
104
- @selected="handleSingleSelect"
104
+ @selected="handleSingleSelect($event, true)"
105
105
  @deselected="handleSingleDeselect"
106
106
  @depth-change="$emit('depth-change')"
107
107
  >
@@ -273,9 +273,11 @@ export default defineComponent({
273
273
  }
274
274
  return flattened
275
275
  },
276
- handleSingleSelect(value?: any) {
276
+ handleSingleSelect(value?: any, skip?: boolean) {
277
277
  this.$emit('selected', value ?? this.value)
278
-
278
+ if (skip) {
279
+ return
280
+ }
279
281
  if (this.multiselect && this.selectChildren) {
280
282
  const hasChildren = !!(
281
283
  this.getOptionByValue(value ?? this.value) as DlSelectOption
@@ -300,9 +302,11 @@ export default defineComponent({
300
302
  }
301
303
  }
302
304
  },
303
- handleSingleDeselect(value?: any) {
305
+ handleSingleDeselect(value?: any, skip?: boolean) {
304
306
  this.$emit('deselected', value ?? this.value)
305
-
307
+ if (skip) {
308
+ return
309
+ }
306
310
  if (this.multiselect && this.selectChildren) {
307
311
  const hasChildren = !!(
308
312
  this.getOptionByValue(value ?? this.value) as DlSelectOption