mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix volatile attributes (#2278)
This commit is contained in:
parent
c799168666
commit
26c109f661
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue