mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:32:45 +08:00
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:
parent
d75262046d
commit
09cbd08c64
|
@ -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") ||
|
||||
|
|
Loading…
Reference in New Issue
Block a user