Update Text Node clone method to clone value as well

pull/332/head
Xin Yao 4 years ago
parent 6aaf351277
commit 1ece2863ed
  1. 2
      lib/src/models/documents/nodes/leaf.dart

@ -211,7 +211,7 @@ class Text extends Leaf {
super.val(text); super.val(text);
@override @override
Node newInstance() => Text(); Node newInstance() => Text(value);
@override @override
String get value => _value as String; String get value => _value as String;

Loading…
Cancel
Save