We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e165da5 commit 67c65afCopy full SHA for 67c65af
packages/core/src/styled.ts
@@ -113,12 +113,11 @@ function removeStyleWithTransition(className: string): void {
113
114
nextTick(() => {
115
const el = instance.vnode.el as HTMLElement
116
- if (!el) {
+ if (!el || !(el instanceof Element)) {
117
removeStyle(className)
118
return
119
}
120
121
- // 检查元素是否有 transition 样式
122
const computedStyle = window.getComputedStyle(el)
123
const transitionDuration = computedStyle.transitionDuration
124
const transitionProperty = computedStyle.transitionProperty
0 commit comments