@social-mail/social-mail-client 1.8.344 → 1.8.347
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/dist/site-editor/editor/ui/SelectionUI.d.ts.map +1 -1
- package/dist/site-editor/editor/ui/SelectionUI.js +5 -1
- package/dist/site-editor/editor/ui/SelectionUI.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +5 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/ui/SelectionUI.tsx +5 -0
package/package.json
CHANGED
|
@@ -372,6 +372,10 @@ const updateFocus = (e, b) => {
|
|
|
372
372
|
return b;
|
|
373
373
|
};
|
|
374
374
|
|
|
375
|
+
const eventDoubleClick = (editor: HtmlPageEditor, e: MouseEvent) => {
|
|
376
|
+
(e.target as HTMLElement).removeAttribute("data-edit");
|
|
377
|
+
};
|
|
378
|
+
|
|
375
379
|
export function SelectionUI() {
|
|
376
380
|
return <selected-element data-element="selection"
|
|
377
381
|
tabIndex="-1"
|
|
@@ -379,6 +383,7 @@ export function SelectionUI() {
|
|
|
379
383
|
&& /absolute|fixed/i.test(editor.selection.currentStyle.position) ? "1" : null))}
|
|
380
384
|
event-pointerdown={BindEditor.event(eventPointerDown as any)}
|
|
381
385
|
event-keydown={BindEditor.event(eventKeyDown as any)}
|
|
386
|
+
event-dblclick={BindEditor.event(eventDoubleClick as any)}
|
|
382
387
|
style-left={BindEditor.oneWay((e) => e.selection.left)}
|
|
383
388
|
style-top={BindEditor.oneWay((e) => e.selection.top)}
|
|
384
389
|
style-width={BindEditor.oneWay((e) => e.selection.width)}
|