Skip to content

Commit 1778876

Browse files
wssgcg1213andycall
authored andcommitted
🐛 fix: input render editable can be destroyed.
1 parent 58ef4b0 commit 1778876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kraken/lib/src/dom/elements/input.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class InputElement extends Element implements TextInputClient, TickerProvider {
621621
SchedulerBinding.instance!.addPostFrameCallback((Duration _) {
622622
_showCaretOnScreenScheduled = false;
623623
Rect? currentCaretRect = _currentCaretRect;
624-
if (currentCaretRect == null) {
624+
if (currentCaretRect == null || _renderEditable == null) {
625625
return;
626626
}
627627

0 commit comments

Comments
 (0)