From e5696cd72f15af6a9409e8477e9c9fe179a7c537 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Thu, 29 Aug 2024 01:52:36 +0200 Subject: [PATCH] Fix script component src attribute (#2887) --- packages/html/src/document/head.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/html/src/document/head.rs b/packages/html/src/document/head.rs index a5a6662f9..4bd923b24 100644 --- a/packages/html/src/document/head.rs +++ b/packages/html/src/document/head.rs @@ -222,6 +222,9 @@ impl ScriptProps { if let Some(r#type) = &self.r#type { attributes.push(("type", r#type.clone())); } + if let Some(src) = &self.src { + attributes.push(("src", src.clone())); + } attributes }