fix(editor): unexpectedly update edgeless note in readonly mode (#12839)
#### PR Dependency Tree * **PR #12839** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
@@ -14,6 +14,7 @@ export class EdgelessNoteMask extends SignalWatcher(
|
|||||||
protected override firstUpdated() {
|
protected override firstUpdated() {
|
||||||
const maskDOM = this.renderRoot!.querySelector('.affine-note-mask');
|
const maskDOM = this.renderRoot!.querySelector('.affine-note-mask');
|
||||||
const observer = new ResizeObserver(entries => {
|
const observer = new ResizeObserver(entries => {
|
||||||
|
if (this.model.store.readonly) return;
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
if (!this.model.props.edgeless.collapse) {
|
if (!this.model.props.edgeless.collapse) {
|
||||||
const bound = Bound.deserialize(this.model.xywh);
|
const bound = Bound.deserialize(this.model.xywh);
|
||||||
|
|||||||
Reference in New Issue
Block a user