phoenix_live_view 1.2.6 → 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.
- package/assets/js/phoenix_live_view/js.js +3 -1
- package/package.json +1 -1
- package/priv/static/phoenix_live_view.cjs.js +2 -2
- package/priv/static/phoenix_live_view.cjs.js.map +2 -2
- package/priv/static/phoenix_live_view.esm.js +2 -2
- package/priv/static/phoenix_live_view.esm.js.map +2 -2
- package/priv/static/phoenix_live_view.js +2 -2
- package/priv/static/phoenix_live_view.min.js +2 -2
|
@@ -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 (
|
|
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
|
@@ -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,
|
|
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.
|
|
6097
|
+
return "1.2.7";
|
|
6098
6098
|
}
|
|
6099
6099
|
/**
|
|
6100
6100
|
* Returns true if profiling is enabled. See {@link enableProfiling} and {@link disableProfiling}.
|