fix volatile attributes (#2278)
This commit is contained in:
1 parent
c799168666
commit
26c109f661
1 file changed
+3
-1
@@ -367,7 +367,9 @@ impl VNode {
|
|||||||
std::cmp::Ordering::Equal => {
|
std::cmp::Ordering::Equal => {
|
||||||
let old = old_attributes_iter.next().unwrap();
|
let old = old_attributes_iter.next().unwrap();
|
||||||
let new = new_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(
|
self.write_attribute(
|
||||||
path,
|
path,
|
||||||
new,
|
new,
|
||||||
|
|||||||
Reference in new issue
Block a user