Skip to content

Commit

Permalink
🐛 fix: input render editable can be destroyed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 authored and andycall committed Jun 18, 2021
1 parent 58ef4b0 commit 1778876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/lib/src/dom/elements/input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class InputElement extends Element implements TextInputClient, TickerProvider {
SchedulerBinding.instance!.addPostFrameCallback((Duration _) {
_showCaretOnScreenScheduled = false;
Rect? currentCaretRect = _currentCaretRect;
if (currentCaretRect == null) {
if (currentCaretRect == null || _renderEditable == null) {
return;
}

Expand Down

0 comments on commit 1778876

Please sign in to comment.