@threadlabs/looma 0.6.5 → 0.7.1

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.
@@ -868,10 +868,7 @@ var LoomaEditor = defineComponent({
868
868
  onFocusin: () => showTool(tablePickerAnchorId, "Insert table", true),
869
869
  onFocusout: hideTool,
870
870
  variant: tablePickerOpen.value ? "solid" : "ghost",
871
- "aria-expanded": tablePickerOpen.value ? "true" : "false",
872
- onClick: () => {
873
- tablePickerOpen.value = !tablePickerOpen.value;
874
- }
871
+ "aria-expanded": tablePickerOpen.value ? "true" : "false"
875
872
  }, () => loomaIcon("table")),
876
873
  commandButton(uploading.value ? "Uploading image" : "Insert image", "image", false, uploading.value || !props.uploadImage, () => fileInput.value?.click()),
877
874
  h("span", {
@@ -1022,6 +1019,9 @@ var LoomaEditor = defineComponent({
1022
1019
  open: tablePickerOpen.value,
1023
1020
  for: tablePickerAnchorId,
1024
1021
  placement: mobile.value ? "top-start" : "bottom-start",
1022
+ onOpen: () => {
1023
+ tablePickerOpen.value = true;
1024
+ },
1025
1025
  onClose: () => {
1026
1026
  tablePickerOpen.value = false;
1027
1027
  }