We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
while using data-table, and i use scrollTo(:left=X) table resets vertical position to 0, instead of keeping old.
// this code is used for horizontal scrool if (scroll.value > 0) tableRef.value?.scrollTo({ left: scroll.value })
// as the scrool is triggerred - behaves as unexpected.
so to it to function normally, now i need save vertical position also.. which is useless.
you can do like
setTimeout(() => { if (scroll.value > 0) tableRef.value?.scrollTo({ left: scroll.value }) }, 100)
// handle scroll event export const handleScroll = useDebounceFn((event: Event) => { scroll.value = (event.target as HTMLElement).scrollLeft }, 250)
<n-data-table ref="tableRef" @scroll="handleScroll" />
null
latest
npm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
while using data-table, and i use scrollTo(:left=X) table resets vertical position to 0, instead of keeping old.
// this code is used for horizontal scrool
if (scroll.value > 0) tableRef.value?.scrollTo({ left: scroll.value })
// as the scrool is triggerred - behaves as unexpected.
so to it to function normally, now i need save vertical position also.. which is useless.
Steps to reproduce
you can do like
setTimeout(() => {
if (scroll.value > 0) tableRef.value?.scrollTo({ left: scroll.value })
}, 100)
// handle scroll event
export const handleScroll = useDebounceFn((event: Event) => {
scroll.value = (event.target as HTMLElement).scrollLeft
}, 250)
<n-data-table
ref="tableRef"
@scroll="handleScroll"
/>
Link to minimal reproduction
null
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: