Skip to content

Commit

Permalink
Renamed 'offsetTop' to 'offsetTop2' as the former is an HTML standard…
Browse files Browse the repository at this point in the history
… property and is read-only.
  • Loading branch information
MrCoder committed Jun 2, 2024
1 parent 3f7ff84 commit b9fa726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:class="{ 'transform -translate-x-1/2': renderParticipants }"
:style="{ paddingTop: top + 'px', left: left + 'px' }"
>
<participant v-if="renderParticipants" :entity="entity" :offsetTop="top" />
<participant v-if="renderParticipants" :entity="entity" :offsetTop2="top" />
<div v-if="renderLifeLine" class="line w0 mx-auto flex-grow w-px"></div>
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
const intersectionTop = useIntersectionTop();
const [scrollTop] = useDocumentScroll();
const translate = computed(() => {
const participantOffsetTop = props.offsetTop || 0;
const participantOffsetTop = props.offsetTop2 || 0;
let top = intersectionTop.value + scrollTop.value;
if (
intersectionTop.value > INTERSECTION_ERROR_MARGIN &&
Expand All @@ -93,7 +93,8 @@ export default {
type: Object,
required: true,
},
offsetTop: {
// offsetTop is a standard HTML property, so we use offsetTop2.
offsetTop2: {
type: Number,
default: 0,
},
Expand Down

0 comments on commit b9fa726

Please sign in to comment.