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
  • Loading branch information
BC-tymurbiedukhin committed Feb 8, 2021
1 parent 462a286 commit b8877de
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
Expand Up @@ -3,6 +3,7 @@
- Fixed required checkbox message displaying. [1963](https://github.com/bigcommerce/cornerstone/pull/1963)

## 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)
- If multiple Pick List Options are applied, customers cannot select "none" on both. [#1975](https://github.com/bigcommerce/cornerstone/pull/1975)
- Moved phrase from compare.html to en.json for increasing localization. [#1972](https://github.com/bigcommerce/cornerstone/pull/1972)
- Fixed focus for sort by dropdown on reloading page. [#1964](https://github.com/bigcommerce/cornerstone/pull/1964)
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 b8877de

Please sign in to comment.