From e28efc6afcaacba2b657f9be084af98621b5f678 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Wed, 17 Jun 2020 00:16:42 -0700 Subject: [PATCH] LazyClick should also get interrupted by buttons --- ui/app/helpers/lazy-click.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/helpers/lazy-click.js b/ui/app/helpers/lazy-click.js index e5927aa3a..4260cca80 100644 --- a/ui/app/helpers/lazy-click.js +++ b/ui/app/helpers/lazy-click.js @@ -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); } }