Skip to content

Commit 989bff3

Browse files
SteffenDEgithub-actions[bot]
authored andcommitted
Update assets
1 parent d1fa20a commit 989bff3

File tree

6 files changed

+59
-23
lines changed

6 files changed

+59
-23
lines changed

priv/static/phoenix_live_view.cjs.js

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.cjs.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,11 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
922922
},
923923
isLocked(el) {
924924
return el.hasAttribute && el.hasAttribute(PHX_REF_LOCK);
925+
},
926+
attributeIgnored(attribute, ignoredAttributes) {
927+
return ignoredAttributes.some(
928+
(toIgnore) => attribute.name == toIgnore || toIgnore === "*" || toIgnore.includes("*") && attribute.name.match(toIgnore) != null
929+
);
925930
}
926931
};
927932
var dom_default = DOM;
@@ -3422,10 +3427,17 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
34223427
ignoreAttrs(el, attrs) {
34233428
dom_default.putPrivate(el, "JS:ignore_attrs", {
34243429
apply: (fromEl, toEl) => {
3425-
Array.from(fromEl.attributes).forEach((attr) => {
3426-
if (attrs.some(
3427-
(toIgnore) => attr.name == toIgnore || toIgnore === "*" || toIgnore.includes("*") && attr.name.match(toIgnore) != null
3428-
)) {
3430+
let fromAttributes = Array.from(fromEl.attributes);
3431+
let fromAttributeNames = fromAttributes.map((attr) => attr.name);
3432+
Array.from(toEl.attributes).filter((attr) => {
3433+
return !fromAttributeNames.includes(attr.name);
3434+
}).forEach((attr) => {
3435+
if (dom_default.attributeIgnored(attr, attrs)) {
3436+
toEl.removeAttribute(attr.name);
3437+
}
3438+
});
3439+
fromAttributes.forEach((attr) => {
3440+
if (dom_default.attributeIgnored(attr, attrs)) {
34293441
toEl.setAttribute(attr.name, attr.value);
34303442
}
34313443
});

priv/static/phoenix_live_view.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)