Skip to content

Commit

Permalink
Merge pull request #1003 from rei/fix-radio-inherit
Browse files Browse the repository at this point in the history
fix(form): fix SSR inheritAtttrs bug on radio/checkbox
  • Loading branch information
cowills committed Mar 9, 2021
2 parents d2b777b + ff2a2d7 commit ac0627b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rei/cedar",
"version": "8.0.0-beta.7",
"version": "8.0.0-beta.8",
"description": "REI Cedar Component Library",
"homepage": "https://rei.github.io/rei-cedar/",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/components/labelWrapper/CdrLabelWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import propValidator from '../../utils/propValidator';
export default {
name: 'CdrLabelWrapper',
mixins: [modifier, size],
inheritAttrs: false,
props: {
labelClass: String,
contentClass: String,
Expand Down
2 changes: 2 additions & 0 deletions src/components/labelWrapper/__tests__/CdrLabelWrapper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ describe('CdrLabelWrapper', () => {
labelClass: 'custom-label-class',
contentClass: 'custom-content-class',
name: 'testName',
class: 'foo',
'data-ui': 'wrapper',
modifier: 'hide-figure',
size: 'medium'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`CdrLabelWrapper matches snapshot 1`] = `
<div
class="cdr-label-wrapper__container"
name="testName"
>
<label
class="cdr-label-wrapper cdr-label-wrapper--primary cdr-label-wrapper--hide-figure cdr-label-wrapper--medium custom-label-class"
Expand Down

0 comments on commit ac0627b

Please sign in to comment.