Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

[FEATURE REQUEST] enhance scrollTo prop if put Grid in a overflow: auto element #182

@hunterliu1003

Description

@hunterliu1003

In my use case, I put a Grid component in a overflow: auto element, then the prop scrollTo not working

<div style="height: 300px; overflow: auto">
  <Grid ... scrollTo="activeIndex">...</Grid>
</div>

I think the reason is the prop scrollTo is implemented with window.scrollTo.

Grid.vue: L114-L120

onUpdated(
  once(() => {
    windowScrollTo$.subscribe((next) => {
      window.scrollTo({ top: next, behavior: "smooth" });
    });
  })
);

Do you have any ideas or solutions to improve the scrollTo with my use case?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions