phoenix_live_view 1.1.13 → 1.1.14
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/assets/js/phoenix_live_view/view.js +16 -2
- package/package.json +1 -1
- package/priv/static/phoenix_live_view.cjs.js +11 -3
- package/priv/static/phoenix_live_view.cjs.js.map +2 -2
- package/priv/static/phoenix_live_view.esm.js +11 -3
- package/priv/static/phoenix_live_view.esm.js.map +2 -2
- package/priv/static/phoenix_live_view.js +11 -3
- package/priv/static/phoenix_live_view.min.js +6 -6
|
@@ -4248,7 +4248,7 @@ var View = class _View {
|
|
|
4248
4248
|
this.log(type, () => ["", clone(rawDiff)]);
|
|
4249
4249
|
const { diff, reply, events, title } = Rendered.extract(rawDiff);
|
|
4250
4250
|
callback({ diff, reply, events });
|
|
4251
|
-
if (typeof title === "string" || type == "mount") {
|
|
4251
|
+
if (typeof title === "string" || type == "mount" && this.isMain()) {
|
|
4252
4252
|
window.requestAnimationFrame(() => dom_default.putTitle(title));
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
@@ -4510,6 +4510,11 @@ var View = class _View {
|
|
|
4510
4510
|
const oldForms = this.root.formsForRecovery;
|
|
4511
4511
|
const template = document.createElement("template");
|
|
4512
4512
|
template.innerHTML = html;
|
|
4513
|
+
dom_default.all(template.content, `[${PHX_PORTAL}]`).forEach((portalTemplate) => {
|
|
4514
|
+
template.content.firstElementChild.appendChild(
|
|
4515
|
+
portalTemplate.content.firstElementChild
|
|
4516
|
+
);
|
|
4517
|
+
});
|
|
4513
4518
|
const rootEl = template.content.firstElementChild;
|
|
4514
4519
|
rootEl.id = this.id;
|
|
4515
4520
|
rootEl.setAttribute(PHX_ROOT_ID, this.root.id);
|
|
@@ -5610,7 +5615,10 @@ var View = class _View {
|
|
|
5610
5615
|
return {};
|
|
5611
5616
|
}
|
|
5612
5617
|
const phxChange = this.binding("change");
|
|
5613
|
-
return dom_default.all(
|
|
5618
|
+
return dom_default.all(
|
|
5619
|
+
document,
|
|
5620
|
+
`#${CSS.escape(this.id)} form[${phxChange}], [${PHX_TELEPORTED_REF}="${CSS.escape(this.id)}"] form[${phxChange}]`
|
|
5621
|
+
).filter((form) => form.id).filter((form) => form.elements.length > 0).filter(
|
|
5614
5622
|
(form) => form.getAttribute(this.binding(PHX_AUTO_RECOVER)) !== "ignore"
|
|
5615
5623
|
).map((form) => {
|
|
5616
5624
|
const clonedForm = form.cloneNode(true);
|
|
@@ -5767,7 +5775,7 @@ var LiveSocket = class {
|
|
|
5767
5775
|
}
|
|
5768
5776
|
// public
|
|
5769
5777
|
version() {
|
|
5770
|
-
return "1.1.
|
|
5778
|
+
return "1.1.14";
|
|
5771
5779
|
}
|
|
5772
5780
|
isProfileEnabled() {
|
|
5773
5781
|
return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";
|