@doenet/doenetml-iframe 0.7.23-dev.475 → 0.7.23-dev.476
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/index.js +8 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/style.css +234 -24
package/index.js
CHANGED
|
@@ -41913,6 +41913,12 @@ function KeyboardTray({
|
|
|
41913
41913
|
const t4 = translate ?? untranslated;
|
|
41914
41914
|
const openLabel = t4("keyboard-open", void 0, "Open Keyboard");
|
|
41915
41915
|
const closeLabel = t4("keyboard-close", void 0, "Close Keyboard");
|
|
41916
|
+
const containerRef = React__default.useRef(null);
|
|
41917
|
+
React__default.useLayoutEffect(() => {
|
|
41918
|
+
if (open && containerRef.current) {
|
|
41919
|
+
containerRef.current.scrollTop = 0;
|
|
41920
|
+
}
|
|
41921
|
+
}, [open]);
|
|
41916
41922
|
return createPortal(
|
|
41917
41923
|
/* @__PURE__ */ React__default.createElement(
|
|
41918
41924
|
"div",
|
|
@@ -41934,7 +41940,7 @@ function KeyboardTray({
|
|
|
41934
41940
|
},
|
|
41935
41941
|
/* @__PURE__ */ React__default.createElement(KeyboardIcon, null)
|
|
41936
41942
|
),
|
|
41937
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "keyboard-container" }, /* @__PURE__ */ React__default.createElement(
|
|
41943
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "keyboard-container", ref: containerRef }, /* @__PURE__ */ React__default.createElement(
|
|
41938
41944
|
"button",
|
|
41939
41945
|
{
|
|
41940
41946
|
className: "close-keyboard-button",
|
|
@@ -68512,7 +68518,7 @@ function ExternalVirtualKeyboard({
|
|
|
68512
68518
|
}
|
|
68513
68519
|
);
|
|
68514
68520
|
}
|
|
68515
|
-
const version = "0.7.23-dev.
|
|
68521
|
+
const version = "0.7.23-dev.476";
|
|
68516
68522
|
const latestDoenetmlVersion = version;
|
|
68517
68523
|
function subscribeToPinnedTheme() {
|
|
68518
68524
|
return () => {
|