@threadlabs/looma 0.23.2 → 0.23.3
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 +1 -1
- package/vue/editor/index.js +3 -2
package/package.json
CHANGED
package/vue/editor/index.js
CHANGED
|
@@ -1839,7 +1839,8 @@ var LoomaEditor = defineComponent({
|
|
|
1839
1839
|
"data-active": instance.isActive("link") ? "true" : "false",
|
|
1840
1840
|
onPointerenter: () => showTool(linkTriggerId, "Link", false),
|
|
1841
1841
|
onPointerleave: hideTool,
|
|
1842
|
-
onPointerdown: () => {
|
|
1842
|
+
onPointerdown: (event) => {
|
|
1843
|
+
event.preventDefault();
|
|
1843
1844
|
linkPopoverAnchorId.value = linkTriggerId;
|
|
1844
1845
|
const selection = instance.state.selection;
|
|
1845
1846
|
linkPressedSelection = selection.empty ? null : {
|
|
@@ -2048,7 +2049,7 @@ var LoomaEditor = defineComponent({
|
|
|
2048
2049
|
value: codeUi.language,
|
|
2049
2050
|
onValueChange: (event) => chooseCodeLanguage(event.detail)
|
|
2050
2051
|
}, () => codeLanguageOptions.value.map((option) => h("option", { value: option.value }, option.label)))]) : null,
|
|
2051
|
-
instance && props.editable && mobile.value && editorFocused.value ? h("div", {
|
|
2052
|
+
instance && props.editable && mobile.value && (editorFocused.value || linkOpen.value) ? h("div", {
|
|
2052
2053
|
ref: mobileToolbarShell,
|
|
2053
2054
|
class: "looma-editor__mobile-toolbar-shell",
|
|
2054
2055
|
"data-mode": mobileToolbarMode.value,
|