mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore(components): [tour] remove redundant check for 'open' variable (#18668)
refactor(components): [tour] remove redundant check for 'open' variable The check for 'open.value == true' was unnecessary since 'open' is already verified to be non-null earlier in the code.
This commit is contained in:
@@ -71,7 +71,7 @@ export const useTarget = (
|
||||
posInfo.value = null
|
||||
return
|
||||
}
|
||||
if (!isInViewPort(targetEl) && open.value) {
|
||||
if (!isInViewPort(targetEl)) {
|
||||
targetEl.scrollIntoView(scrollIntoViewOptions.value)
|
||||
}
|
||||
const { left, top, width, height } = targetEl.getBoundingClientRect()
|
||||
|
||||
Reference in New Issue
Block a user