phoenix_live_view 1.1.26 → 1.1.28

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.
@@ -2535,7 +2535,7 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
2535
2535
  dom_default.copyPrivates(toEl, fromEl);
2536
2536
  if (dom_default.isPortalTemplate(toEl)) {
2537
2537
  portalCallbacks.push(() => this.teleport(toEl, morph));
2538
- fromEl.innerHTML = toEl.innerHTML;
2538
+ fromEl.content.replaceChildren(toEl.content.cloneNode(true));
2539
2539
  return false;
2540
2540
  }
2541
2541
  if (isFocusedFormEl && fromEl.type !== "hidden" && !focusedSelectChanged) {
@@ -4207,6 +4207,7 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
4207
4207
  }
4208
4208
  dom_default.putPrivate(this.el, "view", this);
4209
4209
  this.id = this.el.id;
4210
+ this.el.setAttribute(PHX_ROOT_ID, this.root.id);
4210
4211
  this.ref = 0;
4211
4212
  this.lastAckRef = null;
4212
4213
  this.childJoins = 0;
@@ -5950,7 +5951,7 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
5950
5951
  }
5951
5952
  // public
5952
5953
  version() {
5953
- return "1.1.26";
5954
+ return "1.1.28";
5954
5955
  }
5955
5956
  isProfileEnabled() {
5956
5957
  return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";