Skip to content

Commit

Permalink
targetChild error temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MagTuxGit committed Nov 23, 2021
1 parent ac71926 commit 28795c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/widgets/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,11 @@ class RenderEditableContainerBox extends RenderBox
if (targetChild.getContainer() == targetNode) {
break;
}
targetChild = childAfter(targetChild);
final newChild = childAfter(targetChild);
if (newChild == null) {
break;
}
targetChild = newChild;
}
if (targetChild == null) {
throw 'targetChild should not be null';
Expand Down

0 comments on commit 28795c9

Please sign in to comment.