mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +03:00
feat: add dropdownShouldOpen prop (#1464)
This commit is contained in:
@@ -188,4 +188,14 @@ describe("Toggling Dropdown", () => {
|
||||
expect(Select.classes('vs--searching')).toBeFalsy();
|
||||
});
|
||||
|
||||
it("can be opened with dropdownShouldOpen", () => {
|
||||
const Select = selectWithProps({
|
||||
noDrop: true,
|
||||
dropdownShouldOpen: () => true,
|
||||
options: ['one']
|
||||
});
|
||||
|
||||
expect(Select.classes('vs--open')).toBeTruthy();
|
||||
expect(Select.find('.vs__dropdown-menu li')).toBeTruthy();
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user