Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
feat(switch): add support to bootstrap switch (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Host32 authored Aug 27, 2020
1 parent ec3062b commit 3d44e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AvBaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class AvBaseInput extends Component {
getDefaultValue() {
let defaultValue = '';

if (this.props.type === 'checkbox') {
if (this.props.type === 'checkbox' || this.props.type === 'switch') {
if (!isUndefined(this.props.defaultChecked)) {
return this.props.defaultChecked
? this.props.trueValue
Expand Down

0 comments on commit 3d44e38

Please sign in to comment.