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

Remove modal overlay lock on unmount #490

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

Conversation

bethstevic
Copy link
Contributor

@bethstevic bethstevic commented Oct 14, 2020

  • Fixes bug where classname was not removed on modal close

Jira Bug Ticket

To Test

  1. Pull down react-ui changes
  2. cd into packages/react-ui-core
  3. run yarn and yarn build
  4. run yarn link
    In AG
  5. run yarn link "@rentpath/react-ui-core"
  6. Follow the steps in the above ticket to verify bug fix

- Fixes bug where classname was not removed on modal close

[Jira Bug Ticket](https://rentpath.atlassian.net/browse/AG-4926)
if (this.modalHost) {
document.body.classList.toggle(theme['Overlay-lock'], toggle)
}
document.body.classList.toggle(theme['Overlay-lock'], toggle)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious if this works as expected in IE - according to toggle() docs IE does not support second argument: https://developer.mozilla.org/en-US/docs/Web/API/Element/classList

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

Successfully merging this pull request may close these issues.

2 participants