From 667a7630cef3e58a741dbd5163958ebfb1dcafd0 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Wed, 26 Aug 2015 16:32:28 +0200 Subject: [PATCH] [checkbox] value Fix #223 --- src/common/input/checkbox/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/input/checkbox/index.js b/src/common/input/checkbox/index.js index 26606ccd1..53224248b 100644 --- a/src/common/input/checkbox/index.js +++ b/src/common/input/checkbox/index.js @@ -52,9 +52,9 @@ var checkBoxMixin = { */ getValue: function getValue() { if (this.props.value === undefined || isBoolean(this.props.value)) { - return this.state.isChecked; + return !!this.state.isChecked; } - return this.state.isChecked ? this.props.value : undefined; + return !!(this.state.isChecked ? this.props.value : undefined); }, /** * Build the label class name.