refactor: 💡 uncomment on click handler for dropdown component (#2061)
* refactor: 💡 uncomment on click handler for dropdown component * test: 💍 fix test
This commit is contained in:
1 parent
c7483e5602
commit
a899ad0b74
2 files changed
+2
-2
No files matched your search
@@ -13,7 +13,7 @@
|
||||
@color='secondary'
|
||||
@text={{@name}}
|
||||
@count={{@checkedItems.length}}
|
||||
{{!-- {{on 'click' this.open}} --}}
|
||||
{{on 'click' this.open}}
|
||||
/>
|
||||
{{#if @isSearchable}}
|
||||
<DD.Header @hasDivider={{true}}>
|
||||
|
||||
@@ -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`<Dropdown
|
||||
|
||||
Reference in new issue
Block a user