mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
fix: Fix bug that caused inadvertent scrolling when the WidgetDiv was shown. (#9291)
* fix: Fix bug that caused inadvertent scrolling when the `WidgetDiv` was shown. * chore: Add test to verify that displaying the context menu does not scroll the page. * chore: Clarify comments. * fix: Remove errant `.only`. * chore: Add test to verify that actively focusing a node does not scroll the page. * fix: Remove inadvertent `.only`.
This commit is contained in:
@@ -59,6 +59,9 @@ export interface IFocusableNode {
|
||||
* they should avoid the following:
|
||||
* - Creating or removing DOM elements (including via the renderer or drawer).
|
||||
* - Affecting focus via DOM focus() calls or the FocusManager.
|
||||
*
|
||||
* Implementations may consider scrolling themselves into view here; that is
|
||||
* not handled by the focus manager.
|
||||
*/
|
||||
onNodeFocus(): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user