forked from opentiny/tiny-vue
fix(anchor):[anchor]When the anchor component has a default currentLink, the style is not the expected style (#1368)
* fix(anchor):[anchor]When the anchor component has a default currentLink, the style is not the expected style * fix(anchor):[anchor]Fix formatting issues
This commit is contained in:
parent
6c016bfcc0
commit
d051bea3a0
|
@ -165,6 +165,7 @@ export const onItersectionObserver =
|
|||
({ state, props, api, vm, emit }: Pick<IAnchorRenderlessParams, 'state' | 'props' | 'api' | 'vm' | 'emit'>) =>
|
||||
() => {
|
||||
const { expandLink, scrollContainer } = state
|
||||
state.currentLink && updateSkidPosition({ vm, state, emit })
|
||||
state.intersectionObserver = new IntersectionObserver(
|
||||
(entries) => {
|
||||
const { top } = scrollContainer.getBoundingClientRect()
|
||||
|
|
Loading…
Reference in New Issue