Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger change event for cart form variant_id #51

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

mbajur
Copy link
Contributor

@mbajur mbajur commented Jul 13, 2023

Calling val('foo') on input does not trigger the change event. This PR fixes this behavior so apps built on top of spree_rails_frontend can easily hook into the variant picking form without a need of overwriting entire javascript class/method

See: https://stackoverflow.com/a/3179392/552936

Copy link
Member

@damianlegawiec damianlegawiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mbajur 👍

@damianlegawiec damianlegawiec merged commit 7a178af into spree:main Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants