Skip to content

properly handle centered modal#1332

Merged
xiwcx merged 4 commits intomasterfrom
centered-modal
Feb 24, 2021
Merged

properly handle centered modal#1332
xiwcx merged 4 commits intomasterfrom
centered-modal

Conversation

@xiwcx
Copy link
Copy Markdown
Contributor

@xiwcx xiwcx commented Feb 19, 2021

Fixes #1303

};
}

closeModalOpening();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we be closing the opening here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should only call this when there is no target, right?

} = step.options;

if (step.target) {
if (step) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like this is the main change? We call positionModal now regardless of whether there is a target? I think the closeModalOpening stuff maybe needs another look.

} = step.options;

if (step.target) {
if (step) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need the if/else here at all anymore? I think step has to be defined to get in this method at all.

@xiwcx xiwcx marked this pull request as ready for review February 24, 2021 22:17
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.

Step without element does not resize it's overlay on window resize

2 participants