gristlabs_grist-core/app/client
Dmitry S 23008038b7 (core) When managing focus, don't auto-scroll
Summary:
When Grist is embedded, calls to focus() cause the outer page to scroll to the embed iframe. Because this happens automatically on load, this cause the page to jump to the embed (not consistent across browsers, but at least in Chrome on Windows).

This change changes the automatic focus() calls to avoid scrolling. In the normal app, it should make no difference; in embedded context, this avoids the unexpected scrolling of the parent page.

Test Plan: Tested manually, with Anais's help: in her browser, embedded Grist consistently caused the page to jump to the embed before the change, and not after.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3631
2022-09-14 17:32:11 -04:00
..
aclui (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
components (core) another bundle of dependabot suggestions 2022-09-12 14:20:09 -04:00
lib (core) When managing focus, don't auto-scroll 2022-09-14 17:32:11 -04:00
models (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
ui (core) Adding empty workspace intro 2022-09-12 16:19:31 +02:00
ui2018 Fix a few more CSS values 2022-09-08 15:04:14 -07:00
widgets Fix a few more CSS values 2022-09-08 15:04:14 -07:00
accountMain.ts (core) Enable MFA configuration (and add SMS) 2022-01-19 13:55:54 -08:00
activationMain.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
app.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
app.js (core) Disable bfcache for all browsers 2021-11-24 09:47:00 -08:00
billingMain.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
browserCheck.ts (core) fix browser check and favicon in grist-core 2022-01-05 18:15:05 -05:00
declarations.d.ts (core) Reference columns weren't added to Raw Data Views 2022-07-07 17:07:13 +02:00
errorMain.ts (core) Enable MFA configuration (and add SMS) 2022-01-19 13:55:54 -08:00
exposeModulesForTests.js (core) Some cleanup: remove old unused modules. 2020-11-20 11:23:20 -05:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00