phoenix_live_view 1.2.5 → 1.2.7

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.
@@ -602,7 +602,9 @@ const JS = {
602
602
  .concat(removes);
603
603
 
604
604
  // If element ID is touched via JavaScript, mark it for cheap lookup during morphdom
605
- if (sets.some(([attr, _val]) => attr === "id")) {
605
+ if (
606
+ sets.some(([attr, val]) => attr === "id" && el.getAttribute("id") !== val)
607
+ ) {
606
608
  DOM.putPrivate(el, "clientsideIdAttribute", true);
607
609
  }
608
610
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -3794,7 +3794,7 @@ var JS = {
3794
3794
  const alteredAttrs = sets.map(([attr, _val]) => attr).concat(removes);
3795
3795
  const newSets = prevSets.filter(([attr, _val]) => !alteredAttrs.includes(attr)).concat(sets);
3796
3796
  const newRemoves = prevRemoves.filter((attr) => !alteredAttrs.includes(attr)).concat(removes);
3797
- if (sets.some(([attr, _val]) => attr === "id")) {
3797
+ if (sets.some(([attr, val]) => attr === "id" && el.getAttribute("id") !== val)) {
3798
3798
  dom_default.putPrivate(el, "clientsideIdAttribute", true);
3799
3799
  }
3800
3800
  dom_default.putSticky(el, "attrs", (currentEl) => {
@@ -6094,7 +6094,7 @@ var LiveSocket = class {
6094
6094
  * Returns the version of the LiveView client.
6095
6095
  */
6096
6096
  version() {
6097
- return "1.2.5";
6097
+ return "1.2.7";
6098
6098
  }
6099
6099
  /**
6100
6100
  * Returns true if profiling is enabled. See {@link enableProfiling} and {@link disableProfiling}.