fix cursor with 'readonly'

Closes #791
main
Mike Fix 6 years ago
parent b2d87ab56e
commit fba004fa95

@ -121,8 +121,7 @@ class Carbon extends React.PureComponent {
extraKeys: {
'Shift-Tab': 'indentLess'
},
// negative values removes the cursor, undefined means default (530)
cursorBlinkRate: this.props.readOnly ? -1 : undefined,
readOnly: this.props.readOnly ? 'nocursor' : false,
// needs to be able to refresh every 16ms to hit 60 frames / second
pollInterval: 16
}

Loading…
Cancel
Save