LazyClick should also get interrupted by buttons

This commit is contained in:
Michael Lange
2020-06-17 00:16:42 -07:00
parent 29ff3f9c8c
commit e28efc6afc

View File

@@ -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);
}
}