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

Input value won't save if *initiallyOpened* is set to Always #74

Open
jpgutti opened this issue Nov 11, 2020 · 1 comment
Open

Input value won't save if *initiallyOpened* is set to Always #74

jpgutti opened this issue Nov 11, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jpgutti
Copy link

jpgutti commented Nov 11, 2020

Describe the bug
When opened by default, the assembly option won't save the information in the orderForm.

To Reproduce

  1. Have a product with customization enabled
  2. Set the prop initiallyOpened and ensure that it's rendering open.
  3. Add a custom text or option according to the customization that you've set.

Expected behavior
Expected to value/option to persist to the checkout.

Screenshots
In the image below, I've selected both options that sums value to the product, in both cases the first option(which is pre-selected) is free.
Screen Shot 2020-11-11 at 19 10 13

When I go to the checkout page:
Screen Shot 2020-11-11 at 19 10 26

Additional context
Ps: The Bug also occurs if the customization is a text input

@jpgutti jpgutti added the bug Something isn't working label Nov 11, 2020
@jpgutti
Copy link
Author

jpgutti commented Nov 11, 2020

While trying to find out why this occurs, I've bumped into this:

It seems that when initiallyOpened is set to "always", the button that first dispatch the action OPTIN, won't be rendered and that might be causing the problem.

Screen Shot 2020-11-11 at 19 17 41

@jpgutti jpgutti changed the title Input value won't save if * initiallyOpened* is set to Always Input value won't save if *initiallyOpened* is set to Always Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant