We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de656cc commit 4b42261Copy full SHA for 4b42261
1 file changed
src/ui/util/editable_text.rs
@@ -41,7 +41,8 @@ pub fn EditableText(
41
if !new_text.is_empty() {
42
on_commit.call(new_text);
43
}
44
- draft.set(text()); // keep text or reset if invalid
+ // spawn so memo chain has updated after commit
45
+ spawn(async move { draft.set(text()) }); // reset on empty text or commit failure
46
mode.set(InputMode::Edit);
47
};
48
0 commit comments