We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e9231 commit 207bf54Copy full SHA for 207bf54
1 file changed
src/scroll-to-bottom.ts
@@ -1,7 +1,7 @@
1
export const scrollToBottom = (targetClass = 'bottom') => {
2
document.getElementsByClassName(targetClass)[0].scrollIntoView({
3
behavior: 'smooth',
4
- block: 'end',
5
- inline: 'end'
+ block: 'nearest',
+ inline: 'nearest'
6
})
7
}
0 commit comments