bugfix: apply class changes consistently
This commit is contained in:
parent
1ad7567b28
commit
be759d9b42
2 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
nimcache/
|
nimcache/
|
||||||
/tests/tester
|
/tests/tester
|
||||||
|
*.exe
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,7 @@ proc updateStyles(newNode, oldNode: VNode) =
|
||||||
if oldNode.dom != nil:
|
if oldNode.dom != nil:
|
||||||
if newNode.style != nil: applyStyle(oldNode.dom, newNode.style)
|
if newNode.style != nil: applyStyle(oldNode.dom, newNode.style)
|
||||||
else: oldNode.dom.style = Style()
|
else: oldNode.dom.style = Style()
|
||||||
|
oldNode.dom.class = newNode.class
|
||||||
oldNode.style = newNode.style
|
oldNode.style = newNode.style
|
||||||
oldNode.class = newNode.class
|
oldNode.class = newNode.class
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue