Skip to content

Commit 4b74090

Browse files
authored
fix: Return text content from multiline inputs (#552)
1 parent 56abf17 commit 4b74090

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

platforms/android/src/node.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ impl NodeWrapper<'_> {
6767
}
6868

6969
pub(crate) fn text(&self) -> Option<String> {
70-
self.0.value()
70+
self.0.value().or_else(|| {
71+
self.0
72+
.supports_text_ranges()
73+
.then(|| self.0.document_range().text())
74+
})
7175
}
7276

7377
pub(crate) fn text_selection(&self) -> Option<(usize, usize)> {

0 commit comments

Comments
 (0)