vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
182 stars 57 forks source link

Fix: QuantitySelector validation when min/max quantity #2362

Closed rayssamfreitas closed 3 weeks ago

rayssamfreitas commented 4 weeks ago

What's the purpose of this pull request?

Fix an issue with the quantity selector where, for example, when the minimum quantity was 10, it was not possible to delete this value to enter another.

How it works?

Previously, validation occurred immediately after the input value was changed. Now, instead, validation occurs on focus out.

How to test it?

Adding a cart with minimum quantity and trying to replace the value

vercel[bot] commented 4 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 7:34pm
codesandbox-ci[bot] commented 4 weeks ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

rayssamfreitas commented 3 weeks ago

Thanks @eduardoformiga ! I think the toast idea was nice!