Skip to content

Conversation

@robertwramos
Copy link

@robertwramos robertwramos commented Nov 15, 2023

  • [ x] Bug fix
  • New feature
  • Chore
  • Breaking change
  • [x ] There is an open issue which this change addresses
  • [x ] I have read the CONTRIBUTING document.
  • [ x] My commits follow the Git Commit Guidelines
  • [ x] My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • My change requires a change to Typescript typings.
    • I have updated the typings accordingly.
  • [x ] I have added tests to cover my changes.
  • [ x] All new and existing tests passed.

Fixes #2781

@robertwramos
Copy link
Author

@illiteratewriter Anything we can do to move this along?

@arjunadeltoso
Copy link

arjunadeltoso commented Mar 26, 2025

@robertwramos, we just hit this bug today. Do you know if it was fixed on a separate PR? (Our reactstrap is 9.1.5.)

@robertwramos
Copy link
Author

@arjunadeltoso Not to my knowledge. But if you need a workaround what I ended up doing is setting the body paddingRight to null after a 500ms delay in the modal toggle callback.
Something like this:

const closeModal = () => {
  setTimeout(() => {
    document.body.style.paddingRight = null;
  }, 500);
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Padding issue when closing a modal and opening another at the same time

2 participants