mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
Compare commits
1 commit
e9d1630473
...
aa818b2823
Author | SHA1 | Date | |
---|---|---|---|
|
aa818b2823 |
4 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ impl ListboxInjection {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn trigger(&self) {
|
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:blur=on_blur
|
||||||
on:input=on_input
|
on:input=on_input
|
||||||
prop:value=move || {
|
prop:value=move || {
|
||||||
value_trigger.trigger();
|
value_trigger.notify();
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -48,7 +48,7 @@ pub fn Textarea(
|
||||||
let input_value = event_target_value(&ev);
|
let input_value = event_target_value(&ev);
|
||||||
if let Some(allow_value) = allow_value.as_ref() {
|
if let Some(allow_value) = allow_value.as_ref() {
|
||||||
if !allow_value(input_value.clone()) {
|
if !allow_value(input_value.clone()) {
|
||||||
value_trigger.trigger();
|
value_trigger.notify();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ impl ToasterInjection {
|
||||||
pub fn dispatch_toast(&self, any_view: AnyView<Dom>, options: ToastOptions) {
|
pub fn dispatch_toast(&self, any_view: AnyView<Dom>, options: ToastOptions) {
|
||||||
self.sender
|
self.sender
|
||||||
.with_value(|sender| sender.send((any_view, options)).unwrap_throw());
|
.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