Problem/Motivation
Checkboxes cannot be required input fields due to...well...the nature of checkboxes. If they're marked required, they're always TRUE. Checkboxes are useful for recalculating shipments during checkout.
Steps to reproduce
Add a checkbox to a shipping profile form...it will not recalculate shipping if modified.
Proposed resolution
Add checkbox support to shipping_checkout.js file.
Remaining tasks
See MR
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3269202-4.patch | 1.38 KB | jsacksick |
Issue fork commerce_shipping-3269202
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jsacksick commentedThe es6 version of the JS needs to be modified, and then the "regular" JS is generated using yarn build:js.
So basically, yarn setup and then yarn build:js.
Comment #4
jsacksick commentedThis even simpler change should do the trick.
Comment #6
jsacksick commentedCommitted.