From a899ad0b7400feacf67676f31a4ad902db554063 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Fri, 22 Dec 2023 15:14:59 -0600 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20uncomment=20on=20cli?= =?UTF-8?q?ck=20handler=20for=20dropdown=20component=20(#2061)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 💡 uncomment on click handler for dropdown component * test: 💍 fix test --- addons/core/addon/components/dropdown/index.hbs | 2 +- addons/core/tests/integration/components/dropdown/index-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/core/addon/components/dropdown/index.hbs b/addons/core/addon/components/dropdown/index.hbs index 36fbe29d2..1a9e185cb 100644 --- a/addons/core/addon/components/dropdown/index.hbs +++ b/addons/core/addon/components/dropdown/index.hbs @@ -13,7 +13,7 @@ @color='secondary' @text={{@name}} @count={{@checkedItems.length}} - {{!-- {{on 'click' this.open}} --}} + {{on 'click' this.open}} /> {{#if @isSearchable}} diff --git a/addons/core/tests/integration/components/dropdown/index-test.js b/addons/core/tests/integration/components/dropdown/index-test.js index 1761c034b..1231a5c7b 100644 --- a/addons/core/tests/integration/components/dropdown/index-test.js +++ b/addons/core/tests/integration/components/dropdown/index-test.js @@ -78,7 +78,7 @@ module('Integration | Component | dropdown/index', function (hooks) { test('it calls applyFilter with the correct arguments', async function (assert) { assert.expect(1); this.set('applyFilter', (selectedItems) => { - assert.deepEqual(selectedItems, ['2']); + assert.deepEqual(selectedItems, ['1', '2']); }); await render(hbs`