mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
fix merging static attributes
This commit is contained in:
parent
9be7773ba7
commit
561830d814
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ impl IfmtInput {
|
|||
}
|
||||
|
||||
pub fn is_static(&self) -> bool {
|
||||
matches!(self.segments.as_slice(), &[Segment::Literal(_)] | &[])
|
||||
self.segments
|
||||
.iter()
|
||||
.all(|seg| matches!(seg, Segment::Literal(_)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue