Skip to content

Commit 0ef45d0

Browse files
committed
fix #92
1 parent c1a886b commit 0ef45d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var Editor=function(editable, attr, format, editorClass, defaultValue){
6868
attr.className = attr.className.replace('form-control','');
6969
attr.className += ' checkbox pull-right';
7070

71-
let checked = defaultValue == values.split(':')[0]?true:false;
71+
let checked = defaultValue.toString() == values.split(':')[0]?true:false;
7272

7373
return (
7474
<input {...attr} type='checkbox' value={values} defaultChecked={checked}/>

0 commit comments

Comments
 (0)