From 410ba23832b5f12a9b523f267cdfdff3b60cbc9f Mon Sep 17 00:00:00 2001 From: Himself65 Date: Wed, 25 Jan 2023 14:46:55 -0600 Subject: [PATCH] fix(blocks): add readonly restriction in `DefaultSelectionManager` (#852) --- .../src/page-block/default/selection-manager.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/blocks/src/page-block/default/selection-manager.ts b/packages/blocks/src/page-block/default/selection-manager.ts index 6f74661cf991..b81e769daefd 100644 --- a/packages/blocks/src/page-block/default/selection-manager.ts +++ b/packages/blocks/src/page-block/default/selection-manager.ts @@ -154,14 +154,14 @@ export class PageSelectionState { } export class DefaultSelectionManager { - page: Page; - state = new PageSelectionState('none'); - private _mouseRoot: HTMLElement; - private _container: DefaultPageBlockComponent; - private _disposables = new DisposableGroup(); - private _signals: DefaultPageSignals; - private _embedResizeManager: EmbedResizeManager; - private _dragHandleAbortController = new AbortController(); + readonly page: Page; + readonly state = new PageSelectionState('none'); + private readonly _mouseRoot: HTMLElement; + private readonly _container: DefaultPageBlockComponent; + private readonly _disposables = new DisposableGroup(); + private readonly _signals: DefaultPageSignals; + private readonly _embedResizeManager: EmbedResizeManager; + private readonly _dragHandleAbortController = new AbortController(); private _dragHandle: DragHandle | null = null; private _blockHub: BlockHub | null = null;