Fix minimal quantity reset
| Questions | Answers |
|---|---|
| Description | Fixes an issue when a product has a minimum quantity by sale, and user enter a value greater than the minimal with 2 or 3 digits in input field, and click outside, the value comes back to minimal |
| Category | FO |
| Type | bug fix |
| BC breaks | no |
| Deprecations | no |
| Fixed ticket | Fixes #36245, Fixes #28531 |
| Sponsor company | @ComonSoft |
| How to test | 1. Go to back office, create a product with a minimal quantity for sale by 5 (sample, works with any value) less than 10 |
| 2. Go to frontend product page | |
| 3. In the quantity field, enter quantity greater than 10 by keyboard | |
| 4. Click outside the input (any where except +- arrows) | |
| 5. The quantity in the field goes back to 5. |
Hello @ComonSoft, Some checks were not successful. Can you check that?
Thanks!
Hello @ComonSoft, Some checks were not successful. Can you check that?
Thanks!
Done
Hi @ComonSoft! Sorry, but the ESLint check failed, can you fix it please? 😔
ESLint
Done
Hello @ComonSoft ,
I have the same behavior with and without your PR using PS 8.1.x and PS 9.0x with classic theme. In both cases, there's no reset of the minimal quantity when I click outside of the quantity input. Screen.Recording.2024-06-26.at.15.39.01.mov
Sorry, but the bug is present set the minimal quantity to a value inferior to 10 ;-)