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 Jan 4, 2023
2 parents 52f18c4 + 83fa879 commit e59e7e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class GettingStartedWidget extends ReactWidget {

protected override onActivateRequest(msg: Message): void {
super.onActivateRequest(msg);
const elArr = document.getElementsByClassName('gs-action-container');
const elArr = document.getElementsByTagName('a');
if (elArr && elArr.length > 0) {
(elArr[0] as HTMLElement).focus();
}
Expand Down

0 comments on commit e59e7e4

Please sign in to comment.