fix(dees-input-dropdown): improve dropdown popup lifecycle with window layer overlay and animated visibility transitions

This commit is contained in:
2026-04-04 23:47:13 +00:00
parent 395e0fa3da
commit b1c174a4e2
4 changed files with 53 additions and 21 deletions

View File

@@ -205,12 +205,12 @@ export class DeesInputDropdown extends DeesInputBase<DeesInputDropdown> {
this.popupInstance.addEventListener('close-request', this.handleCloseRequest);
this.popupInstance.addEventListener('reposition-request', this.handleRepositionRequest);
// Show popup (appends to document.body)
this.popupInstance.show();
// Show popup (creates window layer, appends to document.body)
await this.popupInstance.show();
// Focus search input
if (this.enableSearch) {
this.popupInstance.focusSearchInput();
await this.popupInstance.focusSearchInput();
}
}