tsv2-library 1.1.0-dev-alpha.11 → 1.1.0-dev-alpha.13

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.
@@ -42566,15 +42566,15 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
42566
42566
  singleNode: selectedNode.value
42567
42567
  });
42568
42568
  emit("update:visible", !close4);
42569
- } else if (!props.allowEmptySelection) {
42570
- invalidSelectionMessage.value = "You must pick a " + props.type.toLowerCase();
42571
- } else {
42569
+ } else if (props.allowEmptySelection) {
42572
42570
  emit("select", {
42573
42571
  keys: [],
42574
42572
  selectedNodes: void 0,
42575
42573
  singleNode: void 0
42576
42574
  });
42577
42575
  emit("update:visible", !close4);
42576
+ } else if (!props.allowEmptySelection) {
42577
+ invalidSelectionMessage.value = "You must pick a " + props.type.toLowerCase();
42578
42578
  }
42579
42579
  };
42580
42580
  watch(
@@ -42585,6 +42585,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
42585
42585
  if (visible4 && props.keys && !temporarySelectedTreeKeys.value) {
42586
42586
  temporarySelectedTreeKeys.value = props.keys;
42587
42587
  }
42588
+ if (!visible4) {
42589
+ invalidSelectionMessage.value = "";
42590
+ }
42588
42591
  }
42589
42592
  );
42590
42593
  watch(