Skip to content

Commit

Permalink
fix: leptos 0.7-beta5 changes method trigger to notify (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoyle0 authored Sep 9, 2024
1 parent 9ffb29c commit 406fefb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion thaw/src/combobox/listbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl ListboxInjection {

#[inline]
pub fn trigger(&self) {
self.0.trigger();
self.0.notify();
}
}

Expand Down
2 changes: 1 addition & 1 deletion thaw/src/tag_picker/tag_picker_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
""
}
/>
Expand Down
2 changes: 1 addition & 1 deletion thaw/src/textarea/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion thaw/src/toast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 406fefb

Please sign in to comment.