From 99f86fc1c64b95ddf5576ada0bb18ea81154bc9f Mon Sep 17 00:00:00 2001 From: Matthew Hartstonge Date: Wed, 13 Nov 2024 23:15:14 +1300 Subject: [PATCH] chore(addon/components/paper-item): pushes types down to booleans and simplifies bitwise operation for developers to an or. --- addon/components/paper-item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/components/paper-item.js b/addon/components/paper-item.js index c40c678bc..1e1ebee8e 100644 --- a/addon/components/paper-item.js +++ b/addon/components/paper-item.js @@ -85,9 +85,9 @@ export default class PaperItem extends Component.extend(ParentMixin) { click() { this.proxiedComponents.forEach((component) => { if ( - component.processProxy && + !!component.processProxy && !component.disabled && - component.bubbles | !this.hasPrimaryAction + !!(component.bubbles || !this.hasPrimaryAction) ) { component.processProxy(); }