Skip to content

Commit

Permalink
Merge branch 'bug-10878_Getting_Start_Widget_Not_Accept_Focus' of git…
Browse files Browse the repository at this point in the history
…hub.com:WhiteHsu/theia into bug-10878_Getting_Start_Widget_Not_Accept_Focus

==
To modify getting-started-contribution.ts to pass activate to the openView methods.
To focus on the first available link in getting-started-widget.tsx.
[Question] But the warning below still exists. May I ask your kind suggestion? Thank you very much.
--
WARN Widget was activated, but did not accept focus after 2000ms: getting.started.widget
--
  • Loading branch information
WhiteHsu committed Nov 17, 2022
2 parents 52f18c4 + 83fa879 commit ad084fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export class GettingStartedWidget extends ReactWidget {

protected override onActivateRequest(msg: Message): void {
super.onActivateRequest(msg);
const elArr = document.getElementsByClassName('gs-action-container');
if (elArr && elArr.length > 0) {
(elArr[0] as HTMLElement).focus();
const htmlElement = document.getElementById('getting.started.widget');
if (htmlElement) {
htmlElement?.focus();
}
}

Expand Down

0 comments on commit ad084fc

Please sign in to comment.