From 841256e7afb6bc5b184574ca3ffcc147b2d4098d Mon Sep 17 00:00:00 2001 From: Kristopher Ali Date: Fri, 30 May 2025 13:54:55 -0400 Subject: [PATCH] Add the onload property to links (#3843) --- packages/document/src/elements/link.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/document/src/elements/link.rs b/packages/document/src/elements/link.rs index 6ac424070..53a76b239 100644 --- a/packages/document/src/elements/link.rs +++ b/packages/document/src/elements/link.rs @@ -30,6 +30,7 @@ pub struct LinkProps { pub blocking: Option, #[props(extends = link, extends = GlobalAttributes)] pub additional_attributes: Vec, + pub onload: Option, } impl LinkProps { @@ -79,6 +80,9 @@ impl LinkProps { if let Some(blocking) = &self.blocking { attributes.push(("blocking", blocking.clone())); } + if let Some(onload) = &self.onload { + attributes.push(("onload", onload.clone())); + } attributes } }