diff --git a/masonry/src/widget/text_area.rs b/masonry/src/widget/text_area.rs index 138964da3..9e43710c6 100644 --- a/masonry/src/widget/text_area.rs +++ b/masonry/src/widget/text_area.rs @@ -366,9 +366,7 @@ impl TextArea { // preedit will show up again when the platform updates it. if this.widget.editor.is_composing() { let (fctx, lctx) = this.ctx.text_contexts(); - this.widget - .editor - .transact(fctx, lctx, |txn| txn.clear_compose()); + this.widget.editor.driver(fctx, lctx).clear_compose(); } this.widget.editor.set_text(new_text);