scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.66k stars 193 forks source link

autoCloseBrackets param doesn't work #132

Closed MariaShyn closed 5 years ago

MariaShyn commented 5 years ago

autoCloseBrackets param seems to not work

const options = {
    lineNumbers: true,
    theme: 'material',
    mode: 'javascript',
    autoCloseBrackets: true,
    firstLineNumber: 1,
    lineWrapping: false,
    tabSize: 4
}
________________

<CodeMirror
      value={value}
      options={options}
      onBeforeChange={(editor, data, val) => {
          this.setState({ value: val });
      }}
      onChange={(editor, data, header) => {
         onChange(header);
      }}
 />

Thanks in advance!

scniro commented 5 years ago

@MariaShyn are you including the addon/edit/closebrackets.js codemirror addon?