Skip to content

Commit

Permalink
Fix VTag attribute updates (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Oct 13, 2019
1 parent 278aea1 commit 3c76423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual_dom/vtag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl<COMP: Component> VTag<COMP> {
.and_then(|ancestor| ancestor.attributes.get(&**key))
{
None => Some(Patch::Add(&**key, &**value)),
Some(ancestor_value) if value == ancestor_value => {
Some(ancestor_value) if value != ancestor_value => {
Some(Patch::Replace(&**key, &**value))
}
_ => None,
Expand Down

0 comments on commit 3c76423

Please sign in to comment.