sbb-design-systems / sbb-angular

Angular Library for SBB
https://angular.app.sbb.ch
Other
110 stars 23 forks source link

Bug: Autocomplete option list is fixed on vertical window scroll #161

Closed marcodev01 closed 5 years ago

marcodev01 commented 5 years ago

Describe the bug The autocomplete option list postion apears to be fixed when scrolling vertical in browsers window.

To Reproduce Steps to reproduce the behavior:

  1. Go to Autocomplete
  2. Shrink browser window until vertical scrollbar appears
  3. Scroll up and down in browser window

Expected behavior The autocomplete option list should not be fixed while scrolling.

Screenshots If applicable, add screenshots to help explain your problem.

bug_autcomplete_option_list

kyubisation commented 5 years ago

The reason is the usage of the perfect scrollbar, since the CDK portal loses track of the connected element. Needs to be investigated, whether a custom ScrollStrategy would solve this.