mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: erroneous non-reactive access warning in undelegated events (#900)
This commit is contained in:
parent
b452d8af40
commit
6b825fec37
1 changed files with 2 additions and 2 deletions
|
@ -86,13 +86,13 @@ pub(crate) fn add_event_listener_undelegated<E>(
|
|||
{
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(debug_assertions)] {
|
||||
leptos_reactive::SpecialNonReactiveZone::enter();
|
||||
let span = ::tracing::Span::current();
|
||||
let cb = Box::new(move |e| {
|
||||
leptos_reactive::SpecialNonReactiveZone::enter();
|
||||
let _guard = span.enter();
|
||||
cb(e);
|
||||
leptos_reactive::SpecialNonReactiveZone::exit();
|
||||
});
|
||||
leptos_reactive::SpecialNonReactiveZone::exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue