Skip to content

Commit

Permalink
feat: Auto focus on iframe when opened
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Nov 8, 2023
1 parent b3be8ab commit 8518acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/static/js/views/course_outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ function(
$(drawerCover).css('display', 'block');
// xss-lint: disable=javascript-jquery-html
$(drawer).html(
`<iframe src="${taxonomyTagsWidgetUrl}${contentId}" frameborder="0" style="width: 100%; height: 100%;"></iframe>`
`<iframe src="${taxonomyTagsWidgetUrl}${contentId}" onload="this.contentWindow.focus()" frameborder="0" style="width: 100%; height: 100%;"></iframe>`
);
$(drawer).css('display', 'block');

Expand Down

0 comments on commit 8518acb

Please sign in to comment.