diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index f717a39f81b..d1c4374f8e4 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3201,7 +3201,9 @@ void TextEdit::_reset_caret_blink_timer() { void TextEdit::_toggle_draw_caret() { draw_caret = !draw_caret; - update(); + if (is_visible()) { + update(); + } } void TextEdit::_update_caches() {