From 4b9c2b254e76a3a5d17596bdb33b031fef3fcbc5 Mon Sep 17 00:00:00 2001 From: Snow Date: Tue, 2 Jul 2019 14:39:14 +1000 Subject: [PATCH] feat: multiple should check for undef too --- addon/components/selectable-item-group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/components/selectable-item-group.js b/addon/components/selectable-item-group.js index b179c64d..8ea94f69 100644 --- a/addon/components/selectable-item-group.js +++ b/addon/components/selectable-item-group.js @@ -17,7 +17,7 @@ export default Component.extend(ParentComponentSupport, { init() { this._super(...arguments); - if (this.get('selection') === null && !!this.get('multiple')) { + if ((this.get('selection') === null || this.get('selection') === undefined) && !!this.get('multiple')) { this.set('selection', new A([])); } },