Offer option to "auto focus = false" in Box Embed to prevent page scrolling
When embedding Box documents via iFrame, the Preview SDK has Autofocus set to True. This means that Chrome web browser will "jump" to the HTML section that has the iframe and not stay at the top of the page.
I'm requesting the option to set autoFocus: false to prevent this. Note this has been an issue for many years, based on postings here: https://github.com/box/box-content-preview/issues/960
Michael Boggs commented
Just thought I'd add some more information here:
The Box embed widget (located under "more options" when using the ellipse), that generates the "Iframe" code uses the underlying library "Content Preview": https://github.com/box/box-content-preview
This has "autoFocus" set to "True" by default.
This means that when using the "Embed Widget", any page you put the iframe code on will auto scroll to that section of the page. Additionally, there is no option to set "Autofocus" to "false" when generating the iframe code.
I'd like to see an option to set autofocus to false, OR have the autofocus set to false by default in the content preview library.
For reference: The autofocus global attribute is a Boolean attribute indicating that an element should be focused on page load.
Why is this a problem: We often embed documents at the bottom of our intranet pages for reference. When we do this, using the embed widget, the page is automatically scrolling to the location of the iframe, and not to the top of the page, which is what would be desired.