-
Notifications
You must be signed in to change notification settings - Fork 504
Preserve scroll position when opening/closing the relationship modal #4732
New issue
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
Open
Wout-atmire
wants to merge
9
commits into
DSpace:main
Choose a base branch
from
atmire:w2p-133535_fix-preserve-scroll-position_contribute-9.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Preserve scroll position when opening/closing the relationship modal #4732
Wout-atmire
wants to merge
9
commits into
DSpace:main
from
atmire:w2p-133535_fix-preserve-scroll-position_contribute-9.x
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…olling Fix scroll position being lost in selected relationships & imported from external sources tabs 133535: Minor fixes for cleaner diff 133535: fix specs 133535: add scroll-service to specs 133535: add top margin on the submission forms 133535: fix clear pagination 133535: Small fixes 133535: retainScrollPosition for search facet filters & labels 133535: add retainScrollPosition to view-mode-switch.component 133535: use retainScrollPosition for search-switch-configuration.component 133535: use retainScrollPosition for search-filters 133535: preserveFragment when filter reset 133535: fragment in pagination state 133535: do not override input value in themed wrapper 133535: add comments 133535: fix flaky search-form.component specs 133535: fix cannot read ".page" of undefined 133535: keep fragment wen changing page 133535: add fragment to query search 133535: add retainScrollPosition to RPP 133535: add fragment to facetValue 133535: add retainScrollPosition to search components for sort order 133535: add retainScrollPosition to search components 133535: Prevent opening and closing of relationship modal from resetting the scroll position
… into w2p-133535_fix-preserve-scroll-position_contribute-9.x-v2
9fd42d5 to
6dd25fa
Compare
8a2d708 to
fd80742
Compare
… into w2p-133535_fix-preserve-scroll-position_contribute-9.x
fd80742 to
672ab40
Compare
|
Hi @Wout-atmire, |
…ve-scroll-position_contribute-9.x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
component: configurable entities
related to configurable entities
component: submission
port to dspace-7_x
This PR needs to be ported to `dspace-7_x` branch for next bug-fix release
port to dspace-8_x
This PR needs to be ported to `dspace-8_x` branch for next bug-fix release
port to dspace-9_x
This PR needs to be ported to `dspace-9_x` branch for next bug-fix release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References
Description
Fixes the issue of being redirected to the top of the page after opening a modal, by adding a fragment to the URI of the original position were the modal was opened.
Instructions for Reviewers
List of changes in this PR:
this.router.navigatewhen opening a modal are given@Input() retainScrollPosition = false;dynamic-lookup-relation-search-tab.component.htmlds-search-sidebarscroll.service.tsallows to scroll to a specific fragment using JS.scroll-margin-topwhich prevents the sticky header from overlapping our fragment in mind.ScrollService.setFragmentis used.Testing
#prevent-scrollfragment from the URL. And the scroll position should not be reset to the top of the page.Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.