question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected modal position change

See original GitHub issue

Affected browser: Chrome, Edge

Reproduce steps:

  1. Make a simple modal
  2. Set long contents in modal to have scrolling, put radios at bottom
...
          <ModalBody>
            <Box>
              <Box h={800}/>
              <RadioGroup variantColor="green" defaultValue="1">
                <Stack direction="row" spacing="3x">
                  <Radio value="1">Radio 1</Radio>
                  <Radio value="2">Radio 2</Radio>
                </Stack>
              </RadioGroup>
            </Box>
          </ModalBody>
...
  1. Open the modal, scroll to bottom <kbd></kbd>
  2. Click to change radio select
  3. The modal have unexpected position change <kbd></kbd>

Expected results: The modal should keep the same position

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
light049commented, Mar 9, 2022

Related to #344

Thx, hope the style ‘overflow:hidden’ could be the clue to fix this issue.

2reactions
chetoncommented, Mar 9, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

css - jQueryUI modal dialog - dragging causes unexpected ...
What happens is that when the page is at it's top, dialog opens normally and everything works as intended. Dragging dialog causes no...
Read more >
Modal changes screen position to top · Issue #1016 - GitHub
The issue is caused when the modal is focused while it's still positioned off-screen. Details The modal uses these css classes for the...
Read more >
How to handle unexpected modal box for every action in test ...
Purpose: Fail the test case when there is system error modal box. System Error Modal box appears unexpectedly at any point of time....
Read more >
Modal · Bootstrap v4.6
Use Bootstrap's JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
Read more >
Modifying a modal dialog's style and position at run time
This article describes how to modify a modal dialog's styles and position at run-time so it can work both as a child of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found