Skip to content

Commit 270bac7

Browse files
committed
refactor(CModal): improve syntax
1 parent fcaf340 commit 270bac7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/coreui-vue/src/components/collapse/CCollapse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ const CCollapse = defineComponent({
3434
})
3535
el.style.height = `${el.scrollHeight}px`
3636
}
37-
// TODO: find solution how to remove height
3837
const handleAfterEnter = (el: RendererElement) => {
3938
el.classList.remove('collapsing')
40-
el.style.height = 'auto'
39+
el.style.removeProperty('height')
4140
}
4241
const handleBeforeLeave = (el: RendererElement) => {
4342
el.classList.add('show')

0 commit comments

Comments
 (0)