vtex-apps / product-summary

VTEX Product Summary app
11 stars 52 forks source link

Fix autocomplete when clicking on the add to cart button #305

Closed thalytafabrine closed 3 years ago

thalytafabrine commented 3 years ago

What problem is this solving?

The onClickCapture used in the product summary was causing the autocomplete to close by clicking the add to cart button directly from the autocomplete, as this was identified as a click on the product. However, this function is necessary to send events used for the search reports when adding a product to the cart directly from the search page.

How to test it?

Ametller Giga

Screenshots or example usage:

https://user-images.githubusercontent.com/20840671/113870467-40984700-9788-11eb-87d8-6cec41276558.mp4

https://user-images.githubusercontent.com/20840671/113870484-42faa100-9788-11eb-8549-8a5e66fb9acc.mp4

Describe alternatives you've considered, if any.

Related to / Depends on

How does this PR make you feel? :link:

![](put .gif link here - can be found under "advanced" on giphy)

vtex-io-ci-cd[bot] commented 3 years ago

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

vtex-io-docs-bot[bot] commented 3 years ago

Beep boop :robot:

I noticed you didn't make any changes at the docs/ folder

In order to keep track, I'll create an issue if you decide now is not a good time

vtex-io-ci-cd[bot] commented 3 years ago

Your PR has been merged! App is being published. :rocket: Version 2.71.1 → 2.71.2

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.product-summary@2.71.2

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: