Fix additional attributes for js renderers (#3625)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-01-31 14:31:31 -08:00
1 parent 67515ce812
commit 2d188452ae
10 files changed
+125 -1

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ impl StyleProps {
/// Get all the attributes for the style tag
pub fn attributes(&self) -> Vec<(&'static str, String)> {
let mut attributes = Vec::new();
extend_attributes(&mut attributes, &self.additional_attributes);
if let Some(href) = &self.href {
attributes.push(("href", href.clone()));
}