phoenix_live_view 0.20.15 → 0.20.17
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/dom.js +12 -3
- package/assets/package.json +1 -1
- package/package.json +1 -1
- package/priv/static/phoenix_live_view.cjs.js +14 -5
- package/priv/static/phoenix_live_view.cjs.js.map +2 -2
- package/priv/static/phoenix_live_view.esm.js +14 -5
- package/priv/static/phoenix_live_view.esm.js.map +2 -2
- package/priv/static/phoenix_live_view.js +14 -5
- package/priv/static/phoenix_live_view.min.js +6 -6
|
@@ -507,9 +507,18 @@ let DOM = {
|
|
|
507
507
|
if(ref === null){ return true }
|
|
508
508
|
let refSrc = fromEl.getAttribute(PHX_REF_SRC)
|
|
509
509
|
|
|
510
|
-
if(DOM.
|
|
511
|
-
|
|
512
|
-
|
|
510
|
+
if(DOM.isFormInput(fromEl) || fromEl.getAttribute(disableWith) !== null){
|
|
511
|
+
if(DOM.isUploadInput(fromEl)){ DOM.mergeAttrs(fromEl, toEl, {isIgnored: true}) }
|
|
512
|
+
DOM.putPrivate(fromEl, PHX_REF, toEl)
|
|
513
|
+
return false
|
|
514
|
+
} else {
|
|
515
|
+
PHX_EVENT_CLASSES.forEach(className => {
|
|
516
|
+
fromEl.classList.contains(className) && toEl.classList.add(className)
|
|
517
|
+
})
|
|
518
|
+
toEl.setAttribute(PHX_REF, ref)
|
|
519
|
+
toEl.setAttribute(PHX_REF_SRC, refSrc)
|
|
520
|
+
return true
|
|
521
|
+
}
|
|
513
522
|
},
|
|
514
523
|
|
|
515
524
|
cleanChildNodes(container, phxUpdate){
|
package/assets/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1040,11 +1040,20 @@ var DOM = {
|
|
|
1040
1040
|
return true;
|
|
1041
1041
|
}
|
|
1042
1042
|
let refSrc = fromEl.getAttribute(PHX_REF_SRC);
|
|
1043
|
-
if (DOM.
|
|
1044
|
-
DOM.
|
|
1043
|
+
if (DOM.isFormInput(fromEl) || fromEl.getAttribute(disableWith) !== null) {
|
|
1044
|
+
if (DOM.isUploadInput(fromEl)) {
|
|
1045
|
+
DOM.mergeAttrs(fromEl, toEl, { isIgnored: true });
|
|
1046
|
+
}
|
|
1047
|
+
DOM.putPrivate(fromEl, PHX_REF, toEl);
|
|
1048
|
+
return false;
|
|
1049
|
+
} else {
|
|
1050
|
+
PHX_EVENT_CLASSES.forEach((className) => {
|
|
1051
|
+
fromEl.classList.contains(className) && toEl.classList.add(className);
|
|
1052
|
+
});
|
|
1053
|
+
toEl.setAttribute(PHX_REF, ref);
|
|
1054
|
+
toEl.setAttribute(PHX_REF_SRC, refSrc);
|
|
1055
|
+
return true;
|
|
1045
1056
|
}
|
|
1046
|
-
DOM.putPrivate(fromEl, PHX_REF, toEl);
|
|
1047
|
-
return false;
|
|
1048
1057
|
},
|
|
1049
1058
|
cleanChildNodes(container, phxUpdate) {
|
|
1050
1059
|
if (DOM.isPhxUpdate(container, phxUpdate, ["append", "prepend"])) {
|
|
@@ -4140,7 +4149,7 @@ var LiveSocket = class {
|
|
|
4140
4149
|
});
|
|
4141
4150
|
}
|
|
4142
4151
|
version() {
|
|
4143
|
-
return "0.20.
|
|
4152
|
+
return "0.20.17";
|
|
4144
4153
|
}
|
|
4145
4154
|
isProfileEnabled() {
|
|
4146
4155
|
return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";
|