We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180fec2 commit 7e235c3Copy full SHA for 7e235c3
core/flyout_base.ts
@@ -1103,7 +1103,7 @@ export abstract class Flyout
1103
* @internal
1104
*/
1105
isBlockCreatable(block: BlockSvg): boolean {
1106
- return block.isEnabled();
+ return block.isEnabled() && !this.getTargetWorkspace().isReadOnly();
1107
}
1108
1109
/**
core/gesture.ts
@@ -894,7 +894,7 @@ export class Gesture {
894
'Cannot do a block click because the target block is ' + 'undefined',
895
);
896
897
- if (this.targetBlock.isEnabled()) {
+ if (this.flyout.isBlockCreatable(this.targetBlock)) {
898
if (!eventUtils.getGroup()) {
899
eventUtils.setGroup(true);
900
0 commit comments