Skip to content

Commit cf3fccc

Browse files
authored
fix: caret position when editing block comments (#9153)
1 parent afe53c5 commit cf3fccc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/bubbles/textinput_bubble.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ export class TextInputBubble extends Bubble {
173173
browserEvents.conditionalBind(textArea, 'wheel', this, (e: Event) => {
174174
e.stopPropagation();
175175
});
176+
// Don't let the pointerdown event get to the workspace.
177+
browserEvents.conditionalBind(textArea, 'pointerdown', this, (e: Event) => {
178+
e.stopPropagation();
179+
});
176180

177181
browserEvents.conditionalBind(textArea, 'change', this, this.onTextChange);
178182
}

0 commit comments

Comments
 (0)