We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9cfa9d commit a9b71e7Copy full SHA for a9b71e7
src/index.js
@@ -47,7 +47,7 @@ function ReactCodeMirror(props = {}, ref) {
47
opt.mode = mode.mime;
48
}
49
Object.keys(opt).forEach((name) => {
50
- if (opt[name] && JSON.stringify(opt[name])) {
+ if ((opt[name] || opt[name] === false) && JSON.stringify(opt[name])) {
51
instance.setOption(name, opt[name]);
52
53
});
0 commit comments