|
|
@@ -7,9 +7,6 @@ export function patchStyle(el: Element, prev: Style, next: Style) {
|
|
|
const style = (el as HTMLElement).style
|
|
|
const isCssString = isString(next)
|
|
|
if (next && !isCssString) {
|
|
|
- for (const key in next) {
|
|
|
- setStyle(style, key, next[key])
|
|
|
- }
|
|
|
if (prev && !isString(prev)) {
|
|
|
for (const key in prev) {
|
|
|
if (next[key] == null) {
|
|
|
@@ -17,6 +14,9 @@ export function patchStyle(el: Element, prev: Style, next: Style) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ for (const key in next) {
|
|
|
+ setStyle(style, key, next[key])
|
|
|
+ }
|
|
|
} else {
|
|
|
const currentDisplay = style.display
|
|
|
if (isCssString) {
|