targetChild error temporary fix (#484)

pull/486/head
Andy Trand 3 years ago committed by GitHub
parent 06463721de
commit 477f3fc72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      lib/src/widgets/editor.dart

@ -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';

Loading…
Cancel
Save