phoenix_live_view 0.18.1 → 0.18.2

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.
@@ -603,7 +603,7 @@ export default class LiveSocket {
603
603
  }
604
604
 
605
605
  bindClicks(){
606
- window.addEventListener("mousedown", e => this.clickStartedAtTarget = e.target)
606
+ window.addEventListener("click", e => this.clickStartedAtTarget = e.target)
607
607
  this.bindClick("click", "click", false)
608
608
  this.bindClick("mousedown", "capture-click", true)
609
609
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "module": "./priv/static/phoenix_live_view.esm.js",
@@ -3778,7 +3778,7 @@ var LiveSocket = class {
3778
3778
  }
3779
3779
  }
3780
3780
  bindClicks() {
3781
- window.addEventListener("mousedown", (e) => this.clickStartedAtTarget = e.target);
3781
+ window.addEventListener("click", (e) => this.clickStartedAtTarget = e.target);
3782
3782
  this.bindClick("click", "click", false);
3783
3783
  this.bindClick("mousedown", "capture-click", true);
3784
3784
  }