-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix anchor in datagrid-based lists #5246
Conversation
🦋 Changeset detectedLatest commit: 68c82af The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one think that I've noticed is that anchor right click does not work on select channel column in product datagrid
@@ -120,6 +119,7 @@ export const AttributeListDatagrid = ({ | |||
onToggle={handlers.onToggle} | |||
/> | |||
)} | |||
navigatorOpts={{ state: getPrevLocationState(location) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is repeated across each view with the gridd, can just grid call useLocation
inside of its component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about it but I think I would rather have opts like that controlled outside of <Datagrid />
component.
Co-authored-by: M.Graczyk <[email protected]>
onClick
of the<a />
anchor is now executed instead of Datagrid'sonRowClick
then it adds missingnavigatorOpts
to Datagrid lists allowing them to preserve state of the previous location so that the backlink redirects to list with pagination and filtersWhat type of PR is this?
Related Issues or Documents
Usage Instructions, Screenshots, Recordings
Have you written tests?
[Optional] Description