FIX: ensure ember transitions do not get hijacked by discourse intercept-click

explicit null checks as a blank string evaluates to false
This commit is contained in:
Jeff Wong 2019-01-08 15:09:50 -08:00
parent 824c3420e9
commit a2cb2f2366
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@ export default function interceptClick(e) {
!href ||
href === "#" ||
$currentTarget.attr("target") ||
$currentTarget.data("ember-action") ||
$currentTarget.data("auto-route") ||
$currentTarget.data("share-url") ||
$currentTarget.data("ember-action") == null ||
$currentTarget.data("auto-route") == null ||
$currentTarget.data("share-url") == null ||
$currentTarget.hasClass("widget-link") ||
$currentTarget.hasClass("raw-link") ||
$currentTarget.hasClass("mention") ||