fix: Cascader size issue when filterable and multiple are enabled (#2123)

Co-authored-by: yangyu8 <yangyu8@kingsoft.com>
This commit is contained in:
msidolphin
2021-06-03 13:10:49 +08:00
committed by GitHub
parent a1953ef7af
commit e8fa016b46

View File

@@ -433,7 +433,7 @@ export default defineComponent({
if (tagWrapperEl) {
const { offsetHeight } = tagWrapperEl
const height = Math.max(offsetHeight + 6, inputInitialHeight) + 'px'
const height = presentTags.value.length > 0 ? Math.max(offsetHeight + 6, inputInitialHeight) + 'px' : `${inputInitialHeight}px`
inputInner.style.height = height
updatePopperPosition()
}