@contember/create 2.2.0-alpha.13 → 2.2.0-alpha.15
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/create",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": "dist/production/run.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@contember/cli-common": "2.2.0-alpha.
|
|
7
|
+
"@contember/cli-common": "2.2.0-alpha.15",
|
|
8
8
|
"chalk": "^5.6.2",
|
|
9
9
|
"degit": "^2.8.4",
|
|
10
10
|
"js-yaml": "^4.1.1"
|
|
@@ -46,10 +46,13 @@ export const EditorInlineToolbar = memo(({ children }: EditorInlineToolbarProps)
|
|
|
46
46
|
toolbar.style.left = `${left}px`
|
|
47
47
|
|
|
48
48
|
toolbar.style.maxWidth = `${document.documentElement.clientWidth}px`
|
|
49
|
+
toolbar.style.visibility = ''
|
|
49
50
|
} else {
|
|
50
51
|
toolbar.style.top = '-1000vh'
|
|
51
52
|
toolbar.style.left = '-1000vw'
|
|
52
53
|
toolbar.style.maxWidth = 'unset'
|
|
54
|
+
// Parked off-screen it must not be focusable: a popover closing from the toolbar returns focus to its trigger and would scroll the editor to it.
|
|
55
|
+
toolbar.style.visibility = 'hidden'
|
|
53
56
|
}
|
|
54
57
|
}, [editor, selection])
|
|
55
58
|
|