phoenix_live_view 0.18.5 → 0.18.6

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.
@@ -634,7 +634,7 @@ export default class LiveSocket {
634
634
  }
635
635
  let phxEvent = target && target.getAttribute(click)
636
636
  if(!phxEvent){
637
- if(!capture && e.target.href !== undefined && DOM.isExternalClick(e)){ this.unload() }
637
+ if(!capture && e.target.href !== undefined && !DOM.isExternalClick(e)){ this.unload() }
638
638
  return
639
639
  }
640
640
  if(target.getAttribute("href") === "#"){ e.preventDefault() }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix_live_view",
3
- "version": "0.18.5",
3
+ "version": "0.18.6",
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.5",
3
+ "version": "0.18.6",
4
4
  "description": "The Phoenix LiveView JavaScript client.",
5
5
  "license": "MIT",
6
6
  "module": "./priv/static/phoenix_live_view.esm.js",
@@ -3825,7 +3825,7 @@ var LiveSocket = class {
3825
3825
  }
3826
3826
  let phxEvent = target && target.getAttribute(click);
3827
3827
  if (!phxEvent) {
3828
- if (!capture && e.target.href !== void 0 && dom_default.isExternalClick(e)) {
3828
+ if (!capture && e.target.href !== void 0 && !dom_default.isExternalClick(e)) {
3829
3829
  this.unload();
3830
3830
  }
3831
3831
  return;