Skip to content

Commit

Permalink
fix: do not scroll to top on dropdown opening
Browse files Browse the repository at this point in the history
Signed-off-by: Maud Royer <[email protected]>
  • Loading branch information
jillro committed Apr 15, 2024
1 parent 12ad315 commit 5120665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ActionDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ onClickOutside(actionsMenuRef, () => {
watch(show, (value) => {
if (value && !window.matchMedia('(min-width: 580px)').matches) {
useHead({ htmlAttrs: {
'data-fr-scrolling': true,
'style': 'overflow: hidden;',
tagDuplicateStrategy: 'replace'
}
})
} else {
useHead({
htmlAttrs: {
'data-fr-scrolling': null,
'style': '',
tagDuplicateStrategy: 'replace'
}
})
Expand Down

0 comments on commit 5120665

Please sign in to comment.