mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
fix(components): [tour] floating-ui autoUpdate error (#15972)
This commit is contained in:
parent
33f41f7795
commit
9ef20c6d6a
@ -263,7 +263,11 @@ export const useFloating = (
|
||||
|
||||
let cleanup: any
|
||||
onMounted(() => {
|
||||
cleanup = autoUpdate(unref(referenceRef)!, unref(contentRef)!, update)
|
||||
const referenceEl = unref(referenceRef)
|
||||
const contentEl = unref(contentRef)
|
||||
if (referenceEl && contentEl) {
|
||||
cleanup = autoUpdate(referenceEl, contentEl, update)
|
||||
}
|
||||
|
||||
watchEffect(() => {
|
||||
update()
|
||||
|
Loading…
Reference in New Issue
Block a user