phoenix_live_view 0.18.8 → 0.18.9
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/live_socket.js +5 -2
- package/assets/package.json +1 -1
- package/package.json +1 -1
- package/priv/static/phoenix_live_view.cjs.js +4 -2
- package/priv/static/phoenix_live_view.cjs.js.map +2 -2
- package/priv/static/phoenix_live_view.esm.js +4 -2
- package/priv/static/phoenix_live_view.esm.js.map +2 -2
- package/priv/static/phoenix_live_view.js +4 -2
- package/priv/static/phoenix_live_view.min.js +1 -1
|
@@ -801,10 +801,13 @@ export default class LiveSocket {
|
|
|
801
801
|
if(!externalFormSubmitted && phxChange && !phxSubmit){
|
|
802
802
|
externalFormSubmitted = true
|
|
803
803
|
e.preventDefault()
|
|
804
|
-
this.unload()
|
|
805
804
|
this.withinOwners(e.target, view => {
|
|
806
805
|
view.disableForm(e.target)
|
|
807
|
-
|
|
806
|
+
// safari needs next tick
|
|
807
|
+
window.requestAnimationFrame(() => {
|
|
808
|
+
this.unload()
|
|
809
|
+
e.target.submit()
|
|
810
|
+
})
|
|
808
811
|
})
|
|
809
812
|
}
|
|
810
813
|
}, true)
|
package/assets/package.json
CHANGED
package/package.json
CHANGED
|
@@ -4014,10 +4014,12 @@ var LiveSocket = class {
|
|
|
4014
4014
|
if (!externalFormSubmitted && phxChange && !phxSubmit) {
|
|
4015
4015
|
externalFormSubmitted = true;
|
|
4016
4016
|
e.preventDefault();
|
|
4017
|
-
this.unload();
|
|
4018
4017
|
this.withinOwners(e.target, (view) => {
|
|
4019
4018
|
view.disableForm(e.target);
|
|
4020
|
-
window.requestAnimationFrame(() =>
|
|
4019
|
+
window.requestAnimationFrame(() => {
|
|
4020
|
+
this.unload();
|
|
4021
|
+
e.target.submit();
|
|
4022
|
+
});
|
|
4021
4023
|
});
|
|
4022
4024
|
}
|
|
4023
4025
|
}, true);
|