OBPIH-6734 Scroll down to bottom position of the page when redo import#4865
OBPIH-6734 Scroll down to bottom position of the page when redo import#4865awalkowiak merged 1 commit intorelease/0.9.2-hotfix1from
Conversation
|
I don't think I understand why was the approach with redux store necessary, I might be missing something so could you explain? To me, looking at the current code, it looks like we could handle everything in /** Redirect to first step if there is no cached data */
useEffect(() => {
if (_.isEmpty(cachedData) && !is(OutboundImportStep.DETAILS)) {
navigateToStep(OutboundImportStep.DETAILS);
}
}, []);so basically following the logic, if we have cached data available and we are on Details step, then scroll next button into view useEffect(() => {
if (!_.isEmpty(cachedData) && is(OutboundImportStep.DETAILS)) {
buttonRef.current.scrollIntoView();
}
}, [currentStepKey]); |
|
@drodzewicz the problem with that is then I would have to store the |
✨ Description of Change
Link to GitHub issue or Jira ticket:
Description:
📷 Screenshots & Recordings (optional)