commerce icon indicating copy to clipboard operation
commerce copied to clipboard

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

Open thomasvantuycom opened this issue 9 months ago • 1 comments

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

thomasvantuycom avatar May 22 '25 20:05 thomasvantuycom

Hi @thomasvantuycom

Thank you for reporting this.

We believe we have identified the issue and have created a fix for this which will be in Craft itself.

You can follow along with the progress of that issue here: https://github.com/craftcms/cms/pull/17613

Thanks!

nfourtythree avatar Jul 15 '25 10:07 nfourtythree

Craft 5.8.7 is out with that fix. Thanks again!

brandonkelly avatar Jul 18 '25 01:07 brandonkelly