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: { extraKeys: {
'Shift-Tab': 'indentLess' 'Shift-Tab': 'indentLess'
}, },
// negative values removes the cursor, undefined means default (530) readOnly: this.props.readOnly ? 'nocursor' : false,
cursorBlinkRate: this.props.readOnly ? -1 : undefined,
// needs to be able to refresh every 16ms to hit 60 frames / second // needs to be able to refresh every 16ms to hit 60 frames / second
pollInterval: 16 pollInterval: 16
} }

Loading…
Cancel
Save