From 7878cfd5c65d1fd6bdf9fcd74c5b0e13da81d47d Mon Sep 17 00:00:00 2001
From: Vika <vika@fireburn.ru>
Date: Sun, 25 Aug 2024 17:42:20 +0300
Subject: PostEditor: reset internal tracker on updates

---
 src/components/post_editor.rs | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/components')

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);
-- 
cgit 1.4.1