mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
made Undelegated
inner field public so users can just wrap any event with it to force it undelegated
This commit is contained in:
parent
cffdc56062
commit
6737413103
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ pub trait EventDescriptor {
|
|||
|
||||
/// Overrides the [`EventDescriptor::bubbles`] method to always return
|
||||
/// `false`, which forces the event to not be globally delegated.
|
||||
pub struct Undelegated<Ev: EventDescriptor>(Ev);
|
||||
pub struct Undelegated<Ev: EventDescriptor>(pub Ev);
|
||||
|
||||
impl<Ev: EventDescriptor> EventDescriptor for Undelegated<Ev> {
|
||||
type EventType = Ev::EventType;
|
||||
|
|
Loading…
Reference in a new issue