feat: Allow checkboxes to be toggled without going into 'edit' mode (#1349)

This commit is contained in:
Tom Moor
2020-07-28 20:43:34 -07:00
committed by GitHub
parent 169ad5b025
commit bc4806ac30
3 changed files with 15 additions and 4 deletions

View File

@ -83,6 +83,7 @@ class DocumentEditor extends React.Component<Props> {
placeholder="Start with a title…"
value={!title && readOnly ? "Untitled" : title}
style={startsWithEmojiAndSpace ? { marginLeft: "-1.2em" } : undefined}
readOnlyWriteCheckboxes
readOnly={readOnly}
autoFocus={!title}
maxLength={100}