phoenix_live_view 0.18.0 → 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.
@@ -159,7 +159,7 @@ var clone = (obj) => {
159
159
  };
160
160
  var closestPhxBinding = (el, binding, borderEl) => {
161
161
  do {
162
- if (el.matches(`[${binding}]`)) {
162
+ if (el.matches(`[${binding}]`) && !el.disabled) {
163
163
  return el;
164
164
  }
165
165
  el = el.parentElement || el.parentNode;
@@ -2299,8 +2299,6 @@ var View = class {
2299
2299
  flash: this.flash
2300
2300
  };
2301
2301
  });
2302
- this.showLoader(this.liveSocket.loaderTimeout);
2303
- this.bindChannel();
2304
2302
  }
2305
2303
  setHref(href) {
2306
2304
  this.href = href;
@@ -2763,6 +2761,8 @@ var View = class {
2763
2761
  this.isDead = true;
2764
2762
  }
2765
2763
  join(callback) {
2764
+ this.showLoader(this.liveSocket.loaderTimeout);
2765
+ this.bindChannel();
2766
2766
  if (this.isMain()) {
2767
2767
  this.stopCallback = this.liveSocket.withPageLoading({ to: this.href, kind: "initial" });
2768
2768
  }
@@ -3765,7 +3765,7 @@ var LiveSocket = class {
3765
3765
  }
3766
3766
  }
3767
3767
  bindClicks() {
3768
- window.addEventListener("mousedown", (e) => this.clickStartedAtTarget = e.target);
3768
+ window.addEventListener("click", (e) => this.clickStartedAtTarget = e.target);
3769
3769
  this.bindClick("click", "click", false);
3770
3770
  this.bindClick("mousedown", "capture-click", true);
3771
3771
  }