carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Filterable Select- scroll dissapear when select dropdown opened

Open wkustrzykSage opened this issue 2 years ago • 2 comments

Current behaviour

When User clicks on filterable select and options list reveals then page scroll disappears, and the property overflow: hidden is added to the body tag

Expected behaviour

When user open Select list, scroll on main page should not dissapear

CodeSandbox or Storybook URL

https://codesandbox.io/s/clever-sinoussi-g6p0j8?file=/src/index.js

JIRA Ticket (Sage Only)

SBS-35948

Suggested Solution

No response

Carbon Version

106.4.1

Design Tokens Version

2.25.0

What browsers are you seeing the problem on?

Microsoft Edge

What Operating System are you seeing the problem on?

Windows

Anything else we should know?

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

wkustrzykSage avatar Jun 09 '22 15:06 wkustrzykSage

Hi @wkustrzykSage this is the intended behaviour, scroll is blocked when a select is open. Is this behaviour something that is causing you issues?

https://github.com/Sage/carbon/pull/4461

edleeks87 avatar Jun 10 '22 09:06 edleeks87

@tempertemper @harpalsingh Hey guys what do you think about it? Maybe we should leave an option to enable the scroll if someone really wants it to be working?

mkrds avatar Jun 21 '22 13:06 mkrds

Issue closed because it's desired behaviour of Filterable select component

wkustrzykSage avatar Aug 16 '22 07:08 wkustrzykSage