fix(components): [cascader-panel] clear active style (#11495)

Clears the active style when the clear button of the cascader is pressed

closed #11484

Co-authored-by: t1.higashi <t1.higashi@info-sense.co.jp>
This commit is contained in:
esttom 2023-02-11 10:39:13 +09:00 committed by GitHub
parent ac51fbd7dd
commit 9f76a5c11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,6 +192,9 @@ export default defineComponent({
const clearCheckedNodes = () => {
checkedNodes.value.forEach((node) => node.doCheck(false))
calculateCheckedValue()
menus.value = menus.value.slice(0, 1)
expandingNode.value = null
emit('expand-change', [])
}
const calculateCheckedValue = () => {