[5.x]: Can't scroll after opening inventory adjustment modal
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
- Go to inventory screen.
- Click 'set quantity' for any purchasable and any inventory type.
- Close the modal.
- 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
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!
Craft 5.8.7 is out with that fix. Thanks again!