Skip to content

Commit

Permalink
fix(blocks): add readonly restriction in DefaultSelectionManager (#852
Browse files Browse the repository at this point in the history
)
  • Loading branch information
himself65 authored Jan 25, 2023
1 parent 32de4c0 commit 410ba23
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/blocks/src/page-block/default/selection-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

2 comments on commit 410ba23

@vercel
Copy link

@vercel vercel bot commented on 410ba23 Jan 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite-react – ./packages/react/examples/next

blocksuite-react-git-master-toeverything.vercel.app
blocksuite-react-toeverything.vercel.app
blocksuite-react.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 410ba23 Jan 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

blocksuite-five.vercel.app
blocksuite-toeverything.vercel.app
blocksuite-git-master-toeverything.vercel.app

Please sign in to comment.