Remove jquery from the lazy-click helper
This commit is contained in:
parent
d84df5dbe6
commit
083e82e6b7
|
@ -1,5 +1,4 @@
|
|||
import Helper from '@ember/component/helper';
|
||||
import $ from 'jquery';
|
||||
|
||||
/**
|
||||
* Lazy Click Event
|
||||
|
@ -10,7 +9,7 @@ import $ from 'jquery';
|
|||
* that should be handled instead.
|
||||
*/
|
||||
export function lazyClick([onClick, event]) {
|
||||
if (!$(event.target).is('a')) {
|
||||
if (event.target.tagName.toLowerCase() !== 'a') {
|
||||
onClick(event);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue