Skip to content

Commit

Permalink
fix: revert unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Oct 2, 2023
1 parent cde5b7c commit ea6007a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/anchor/src/BaseAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ export const baseAnchorProps = {
type: Number,
default: 12
},
top: {
type: Number,
default: 0
},
internalScrollable: Boolean,
ignoreGap: Boolean,
offsetTarget: [String, Object, Function] as PropType<
Expand Down Expand Up @@ -199,7 +195,7 @@ export default defineComponent({
return prevLink
}
}
if (link.top <= bound + props.top) {
if (link.top <= bound) {
if (prevLink === null) {
return link
} else if (link.top === prevLink.top) {
Expand Down

0 comments on commit ea6007a

Please sign in to comment.