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

Drawer: ScrollView doesn't scroll if you change the Drawer's position and openedStateMode options (T1255272) #28737

Open
wants to merge 1 commit into
base: 25_1
Choose a base branch
from

Conversation

EugeniyKiyashko
Copy link
Contributor

No description provided.


panelPositions
.filter((position) => `${DRAWER_CLASS}-${position}` !== expectedClass)
.map((position) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[minor]
it's more natively to use forEach if you just want to iterate. map is designed for mapping

});

configs.forEach(({ panelPosition: newPanelPosition, expectedClass: expectedClassAfterChange }) => {
QUnit.test(`ddrawer should have ${expectedClassAfterChange} class after changing position from ${panelPosition} to ${newPanelPosition}, rtlEnabled=${rtlEnabled}`, function(assert) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[minor]

Suggested change
QUnit.test(`ddrawer should have ${expectedClassAfterChange} class after changing position from ${panelPosition} to ${newPanelPosition}, rtlEnabled=${rtlEnabled}`, function(assert) {
QUnit.test(`drawer should have ${expectedClassAfterChange} class after changing position from ${panelPosition} to ${newPanelPosition}, rtlEnabled=${rtlEnabled}`, function(assert) {

@ksercs ksercs requested a review from a team January 16, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants