This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 4 months ago.

Body should not scroll when a modal is open


  • f_monts
    Participant

    Posts: 18
    Member Reply #7140

    I wonder why you have added this:

    .modal-open {
    overflow: auto!important;
    }

    Which makes the background page scroll if you move the mousewheel when a bootstrap modal is open.

    Can I safely override it, or will it have any side effects?

    • This topic was modified 2 years, 4 months ago by  f_monts.
    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #7156

    Hi :),

    You can try to override it of you modal contents are not too long. We will revise this code and try to optimize it in the next v4.6.1 update that we are planning to release within the next week. Stay tuned!

    Thanks.

You must be logged in to reply to this topic.