Fix script component src attribute (#2887)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-08-28 18:52:36 -05:00
1 parent 91112734f6
commit e5696cd72f
1 file changed
+3
+3
View File
@@ -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
}