diff --git a/leptos_dom/src/node_ref.rs b/leptos_dom/src/node_ref.rs index 151a931e9c..0f71b0b46a 100644 --- a/leptos_dom/src/node_ref.rs +++ b/leptos_dom/src/node_ref.rs @@ -185,6 +185,12 @@ impl Clone for NodeRef { impl Copy for NodeRef {} +impl Default for NodeRef { + fn default() -> Self { + Self::new() + } +} + cfg_if::cfg_if! { if #[cfg(feature = "nightly")] { impl FnOnce<()> for NodeRef {