summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/post_editor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/post_editor.rs b/src/components/post_editor.rs
index 6dc9827..fe69ac7 100644
--- a/src/components/post_editor.rs
+++ b/src/components/post_editor.rs
@@ -442,6 +442,7 @@ impl<E: std::error::Error + std::fmt::Debug + Send + 'static> Component for Post
     }
 
     fn update_with_view(&mut self, widgets: &mut Self::Widgets, msg: Self::Input, sender: ComponentSender<Self>, root: &Self::Root) {
+        self.reset();
         match msg {
             Input::SmartSummary(components::SmartSummaryOutput::Start) => {
                 widgets.content_textarea.set_sensitive(false);