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.
@@ -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
- window.requestAnimationFrame(() => e.target.submit()) // safari needs next tick
806
+ // safari needs next tick
807
+ window.requestAnimationFrame(() => {
808
+ this.unload()
809
+ e.target.submit()
810
+ })
808
811
  })
809
812
  }
810
813
  }, true)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "repository": {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "module": "./priv/static/phoenix_live_view.esm.js",
@@ -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(() => e.target.submit());
4019
+ window.requestAnimationFrame(() => {
4020
+ this.unload();
4021
+ e.target.submit();
4022
+ });
4021
4023
  });
4022
4024
  }
4023
4025
  }, true);