Blur the activeElement to avoid an aria error "decendent must not have focus"

This commit is contained in:
nathan 2024-12-19 08:45:50 -07:00
parent 7e75fb5f1d
commit aea088736b

View File

@ -502,6 +502,10 @@ export class Et2Dialog extends Et2Widget(SlDialog)
return;
}
if(typeof document.activeElement?.blur == "function")
{
document.activeElement?.blur();
}
this.removeOpenListeners();
this._completeResolver([this._button_id, this.value]);