mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
LazyClick should also get interrupted by buttons
This commit is contained in:
@@ -9,7 +9,7 @@ import Helper from '@ember/component/helper';
|
||||
* that should be handled instead.
|
||||
*/
|
||||
export function lazyClick([onClick, event]) {
|
||||
if (event.target.tagName.toLowerCase() !== 'a') {
|
||||
if (!['a', 'button'].includes(event.target.tagName.toLowerCase())) {
|
||||
onClick(event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user