fix: [dropdown] with dialog use zIndex loop (#7012)

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
This commit is contained in:
Xc 2022-04-10 17:30:08 +08:00 committed by GitHub
parent 2f38edd715
commit 5849909577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ const createPopperInstance = ({ referenceEl, popperContentEl, arrowEl }) => {
const updatePopper = () => {
unref(popperInstanceRef)?.update()
contentZIndex.value = props.zIndex || nextZIndex()
contentZIndex.value = props.zIndex || contentZIndex.value || nextZIndex()
}
const togglePopperAlive = () => {