Skip to content

Commit

Permalink
Fix: Unexpected whole page scrollC
Browse files Browse the repository at this point in the history
  • Loading branch information
delowardev committed Aug 25, 2022
1 parent 60b432f commit 6a42d8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.1.4 (25/08/22)

- Fix: Unexpected whole page scroll. See #28

v1.1.3 (16/06/22)

- Fix: Unable to change group names #25
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-emoji-picker",
"version": "1.1.3",
"version": "1.1.4",
"license": "MIT",
"author": "delowardev",
"repository": {
Expand Down
6 changes: 5 additions & 1 deletion src/components/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ export default defineComponent({
() => {
bodyInner.value
?.querySelector('#' + state.activeGroup)
?.scrollIntoView({ behavior: 'smooth' })
?.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'start',
})
}
)
Expand Down

0 comments on commit 6a42d8d

Please sign in to comment.