Compare commits

...

1 commit

Author SHA1 Message Date
Adam
aa818b2823 fix: leptos 0.7-beta5 changes method trigger to notify 2024-09-08 22:54:00 -04:00
4 changed files with 4 additions and 4 deletions

View file

@ -75,7 +75,7 @@ impl ListboxInjection {
#[inline]
pub fn trigger(&self) {
self.0.trigger();
self.0.notify();
}
}

View file

@ -47,7 +47,7 @@ pub fn TagPickerInput(#[prop(optional, into)] class: MaybeProp<String>) -> impl
on:blur=on_blur
on:input=on_input
prop:value=move || {
value_trigger.trigger();
value_trigger.notify();
""
}
/>

View file

@ -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;
}
}

View file

@ -43,7 +43,7 @@ impl ToasterInjection {
pub fn dispatch_toast(&self, any_view: AnyView<Dom>, 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());
}
}