summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-25 17:42:20 +0300
committerVika <vika@fireburn.ru>2024-08-25 17:42:20 +0300
commit7878cfd5c65d1fd6bdf9fcd74c5b0e13da81d47d (patch)
tree1e1b578e70c82d2c55c04b372a6bba6c8232ff9c
parent15b66ea78b619696c15414d1008acfe460c94028 (diff)
PostEditor: reset internal tracker on updates
-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);