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

[Bug] Background content scrollable when modal is open #413

Open
3hxx opened this issue Aug 3, 2022 · 5 comments
Open

[Bug] Background content scrollable when modal is open #413

3hxx opened this issue Aug 3, 2022 · 5 comments
Labels
Bug Something isn't working Needs: More Information The author needs to provide more information on the issue.

Comments

@3hxx
Copy link

3hxx commented Aug 3, 2022

Describe the bug
When the modal is open i can still scroll down on the background content? I've tried googling it and I can't see this has been raised before?

To Reproduce
Steps to reproduce the behavior:
`var options = new ModalOptions()
{
Class = "blazored-modal-photo-select",
};

    var parameters = new ModalParameters();
    var modal = ModalService.Show<AddOrRemovePhotosModal>("Edit Photos", parameters, options);`

Expected behavior
I would expect the background not to be scrollable when a modal is open

Screenshots
https://gyazo.com/d3086c9dadcb0153a8bf6d5a95d9ed55

Here is a gif of my behavior

Hosting Model (is this issue happening with a certain hosting model?):

  • Blazor Server
@3hxx 3hxx added Bug Something isn't working Triage Issue needs to be triaged labels Aug 3, 2022
@chrissainty
Copy link
Member

Are you seeing this in the latest preview package or the current GA version?

@chrissainty chrissainty added Needs: More Information The author needs to provide more information on the issue. and removed Triage Issue needs to be triaged labels Aug 4, 2022
@3hxx
Copy link
Author

3hxx commented Aug 5, 2022

Version I am using is 7.0.0-preview.2 :)

@chrissainty
Copy link
Member

This only appears to happen on mobile devices, specifically Safari on iOS. I've noticed that Bootstraps modal also has this behaviour on iOS as well.

@LePtitJoNadeau
Copy link

@chrissainty,
On Firefox browser, (not on phone)
I can reproduce a similar bug on Firefox as well.

This is my setup:

Firefox version: 110.0.1 (64-bit)

My body where the modal is open from:

![image](https://user-images.githubusercontent.com/23142259/222758354-1b885b15-46c2-471e-8fef-c36521eed414.png)

When modal open, I can still scroll from body.

This only occur in Firefox.

I tried on:
Edge
Chrome

No problem with these.

Thank you very much :)

@MarkusG
Copy link

MarkusG commented Jul 5, 2023

Also running into this issue on version 7.1.0 on Firefox and Chromium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs: More Information The author needs to provide more information on the issue.
Projects
None yet
Development

No branches or pull requests

4 participants