mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
fix: leptos 0.7-beta5 changes method trigger to notify (#253)
This commit is contained in:
parent
9ffb29c8b2
commit
406fefb69b
4 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ impl ListboxInjection {
|
|||
|
||||
#[inline]
|
||||
pub fn trigger(&self) {
|
||||
self.0.trigger();
|
||||
self.0.notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
""
|
||||
}
|
||||
/>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue