Fixed with_dyn_child being more restrictive than dyn_child.

This commit is contained in:
Filipe Rodrigues 2024-02-16 13:04:48 +00:00
parent 033355dad4
commit e4f0efbbf5
Signed by: zenithsiz
SSH Key Fingerprint: SHA256:Mb5ppb3Sh7IarBO/sBTXLHbYEOz37hJAlslLQPPAPaU

View File

@ -146,7 +146,7 @@ where
fn with_dyn_child<F, N>(self, f: F) -> Self
where
F: Fn() -> Option<N> + 'static,
N: AsRef<web_sys::Node> + 'static,
N: AsRef<web_sys::Node>,
{
self.dyn_child(f);
self