fix: caret position when editing block comments (#9153)

This commit is contained in:
Maribeth Moffatt
2025-06-18 11:15:41 -07:00
committed by GitHub
parent afe53c5194
commit cf3fcccec1

View File

@@ -173,6 +173,10 @@ export class TextInputBubble extends Bubble {
browserEvents.conditionalBind(textArea, 'wheel', this, (e: Event) => {
e.stopPropagation();
});
// Don't let the pointerdown event get to the workspace.
browserEvents.conditionalBind(textArea, 'pointerdown', this, (e: Event) => {
e.stopPropagation();
});
browserEvents.conditionalBind(textArea, 'change', this, this.onTextChange);
}