mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix: Cascader size issue when filterable and multiple are enabled (#2123)
Co-authored-by: yangyu8 <yangyu8@kingsoft.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user