mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Fix script component src attribute (#2887)
This commit is contained in:
parent
91112734f6
commit
e5696cd72f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue