Skip to content

[5.x]: Can't scroll after opening inventory adjustment modal #4016

Open
@thomasvantuycom

Description

@thomasvantuycom

What happened?

Description

After setting or adjusting any quantity on the inventory screen, the page no longer scrolls after closing the modal. I believe this has to do with the code of CpModal.js, because I observe the same problem in a plugin I'm building that is using that component.

Steps to reproduce

  1. Go to inventory screen.
  2. Click 'set quantity' for any purchasable and any inventory type.
  3. Close the modal.
  4. Try to scroll.

Expected behavior

The page still scrolls after closing the modal.

Actual behavior

The page no longer scrolls.

Craft CMS version

5.7.7

Craft Commerce version

5.3.12

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions