Focus search textbox in dropdown.
This commit is contained in:
parent
79276d9255
commit
b02f85065d
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ const DropdownWidget = (() => {
|
||||||
const availableHeight = menuHeight - inputHeight;
|
const availableHeight = menuHeight - inputHeight;
|
||||||
|
|
||||||
dropdownContent.style.maxHeight = `${availableHeight}px`;
|
dropdownContent.style.maxHeight = `${availableHeight}px`;
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
searchInput.focus();
|
||||||
|
}, 1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue