fix volatile attributes (#2278)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-04-08 18:42:48 -07:00
1 parent c799168666
commit 26c109f661
1 file changed
+3 -1
+3 -1
View File
@@ -367,7 +367,9 @@ impl VNode {
std::cmp::Ordering::Equal => {
let old = old_attributes_iter.next().unwrap();
let new = new_attributes_iter.next().unwrap();
if old.value != new.value {
// Volatile attributes are attributes that the browser may override so we always update them
let volatile = old.volatile;
if volatile || old.value != new.value {
self.write_attribute(
path,
new,