Skip to content
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

Does not scroll down progress bar when selecting sections not visible in bar #367

Open
dhyanaswain opened this issue Nov 1, 2020 · 0 comments

Comments

@dhyanaswain
Copy link

dhyanaswain commented Nov 1, 2020

Scroll bar does not scroll with user, while scrolling in main screen,
I have 2 scroll bar now, one is the native scrollbar and other one is the scroll bar i have added to the component

I have 14 item in the list A-N.

The scrollBar component height is same as the windows screen hight and fixed to top, when i scroll each item are getting highlighted but the scroll is not happening , to see the item which is not visible(J-N) right now in the screen and highlighted i need to scroll in the component itself,

if any one know how i can mount the windows scroll to the custom scroll please let me know

My code:

<div className="col-12 form-progress pt-3 mb-1">
   <Scrollbars className='form-progress__scrollableContent' key={`${props.id}-scrollableContent`}>
      {progressItems.map((itemProps: ProgressBarItemProps, idx: number) => (
          <ProgressBarItem
                 key={`key-${itemProps.name}`}
                 index={idx}
                 clickHandler={handleProgressSidebarClick}
                 name={itemProps.name}
                 status={itemProps.status}
                 arialabelScreenReader={itemProps.arialabelScreenReader}
         />
      ))}
  </Scrollbars>
</div>

what currently happening:
032b5bab-06aa-4d0e-bc3a-20b9752aeda8

Expected:
97538b6f-3abf-4aa7-b976-a2c69866a7bd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant