diff --git a/thaw/src/combobox/listbox.rs b/thaw/src/combobox/listbox.rs index 8bb0685..54830c9 100644 --- a/thaw/src/combobox/listbox.rs +++ b/thaw/src/combobox/listbox.rs @@ -75,7 +75,7 @@ impl ListboxInjection { #[inline] pub fn trigger(&self) { - self.0.trigger(); + self.0.notify(); } } diff --git a/thaw/src/tag_picker/tag_picker_input.rs b/thaw/src/tag_picker/tag_picker_input.rs index 697296f..f205a01 100644 --- a/thaw/src/tag_picker/tag_picker_input.rs +++ b/thaw/src/tag_picker/tag_picker_input.rs @@ -47,7 +47,7 @@ pub fn TagPickerInput(#[prop(optional, into)] class: MaybeProp) -> impl on:blur=on_blur on:input=on_input prop:value=move || { - value_trigger.trigger(); + value_trigger.notify(); "" } /> diff --git a/thaw/src/textarea/mod.rs b/thaw/src/textarea/mod.rs index 764ef7c..8dbbb8e 100644 --- a/thaw/src/textarea/mod.rs +++ b/thaw/src/textarea/mod.rs @@ -48,7 +48,7 @@ pub fn Textarea( let input_value = event_target_value(&ev); if let Some(allow_value) = allow_value.as_ref() { if !allow_value(input_value.clone()) { - value_trigger.trigger(); + value_trigger.notify(); return; } } diff --git a/thaw/src/toast/mod.rs b/thaw/src/toast/mod.rs index 95d1f81..19931e3 100644 --- a/thaw/src/toast/mod.rs +++ b/thaw/src/toast/mod.rs @@ -43,7 +43,7 @@ impl ToasterInjection { pub fn dispatch_toast(&self, any_view: AnyView, options: ToastOptions) { self.sender .with_value(|sender| sender.send((any_view, options)).unwrap_throw()); - self.trigger.with_value(|trigger| trigger.trigger()); + self.trigger.with_value(|trigger| trigger.notify()); } }