Skip to content

Commit

Permalink
Fixed a space input error on iPad. (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-duan authored Aug 26, 2023
1 parent 16ba7cb commit b64235c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/models/documents/nodes/container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class Container<T extends Node?> extends Node {
int get childCount => _children.length;

/// Returns the first child [Node].
Node get first => _children.first;
Node? get first => isEmpty ? null : _children.first;

/// Returns the last child [Node].
Node get last => _children.last;
Expand Down

0 comments on commit b64235c

Please sign in to comment.