Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 5c1571d

Browse files
lyubov-voloshkoMatt Goo
authored and
Matt Goo
committed
feat(select): add 'form' attribute to NativeControl component (#907)
1 parent d74418a commit 5c1571d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/switch/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export default class Switch extends React.Component<SwitchProps, SwitchState> {
122122
checked,
123123
disabled,
124124
/* eslint-enable */
125+
form,
125126
nativeControlId,
126127
...otherProps
127128
} = this.props;
@@ -131,6 +132,7 @@ export default class Switch extends React.Component<SwitchProps, SwitchState> {
131132
<ThumbUnderlay rippleActivator={this.rippleActivator}>
132133
<NativeControl
133134
id={nativeControlId}
135+
form={form}
134136
checked={this.state.nativeControlChecked}
135137
disabled={this.state.nativeControlDisabled}
136138
onChange={this.onChange}

0 commit comments

Comments
 (0)