Skip to content

Commit

Permalink
fix(storefront): BCTHEME-400 If product options are not required, the…
Browse files Browse the repository at this point in the history
… 'None' option will remain selected even if another option is chosen (bigcommerce#1980)
  • Loading branch information
BC-tymurbiedukhin authored and sacr3dc0w committed Mar 31, 2021
1 parent 95aea47 commit 16bdeb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- For non-required options, when the "None" option displays on the storefront it should be deselected when another option is chosen. [#1980](https://github.com/bigcommerce/cornerstone/pull/1980)
- Error message not announced automatically. [#1983](https://github.com/bigcommerce/cornerstone/pull/1983)
- Fixed Discount Banner update on adding item to Cart from PDP [#1974](https://github.com/bigcommerce/cornerstone/pull/1974)
- Make every product option group id unique. [#1979](https://github.com/bigcommerce/cornerstone/pull/1979)
Expand Down
6 changes: 3 additions & 3 deletions templates/components/products/options/set-radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<input
class="form-radio"
type="radio"
id="attribute_radio_{{../id}}_none"
name="attribute[{{../id}}]"
id="attribute_radio_{{id}}_none"
name="attribute[{{id}}]"
value=""
checked="{{#if defaultValue '==' ''}}checked{{/if}}"
>
<label class="form-label" for="attribute_radio_{{../id}}_none">{{lang 'products.none'}}</label>
<label class="form-label" for="attribute_radio_{{id}}_none">{{lang 'products.none'}}</label>
{{/unless}}

{{#each this.values}}
Expand Down

0 comments on commit 16bdeb7

Please sign in to comment.