From 406fefb69b9790ff19c9bfde4e58c768d583bd2e Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Mon, 9 Sep 2024 01:48:59 -0400 Subject: [PATCH] fix: leptos 0.7-beta5 changes method trigger to notify (#253) --- thaw/src/combobox/listbox.rs | 2 +- thaw/src/tag_picker/tag_picker_input.rs | 2 +- thaw/src/textarea/mod.rs | 2 +- thaw/src/toast/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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()); } }