Skip to content

Commit

Permalink
feat(select): add 'form' attribute to NativeControl component (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyubov-voloshko authored and Matt Goo committed Jun 11, 2019
1 parent d8a1f3c commit 044117f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/switch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default class Switch extends React.Component<SwitchProps, SwitchState> {
checked,
disabled,
/* eslint-enable */
form,
nativeControlId,
...otherProps
} = this.props;
Expand All @@ -131,6 +132,7 @@ export default class Switch extends React.Component<SwitchProps, SwitchState> {
<ThumbUnderlay rippleActivator={this.rippleActivator}>
<NativeControl
id={nativeControlId}
form={form}
checked={this.state.nativeControlChecked}
disabled={this.state.nativeControlDisabled}
onChange={this.onChange}
Expand Down

0 comments on commit 044117f

Please sign in to comment.