'Why isn't the spacebar working in react-quill
I've setup react-quill in my React app, but for some reason the spacebar isn't working.
import React from 'react'
import ReactQuill from 'react-quill'
import 'react-quill/dist/quill.snow.css'
const modules = {
toolbar: [
['bold', 'italic', 'underline','strike', 'blockquote', 'code-block'],
[{'list': 'ordered'}, {'list': 'bullet'}],
[{ 'script': 'sub'}, { 'script': 'super' }],
['link', 'image']
],
}
export default () => {
return (
<ReactQuill
theme='snow'
value={value}
onChange={value => handleComment(value)}
modules={modules}
placeholder={placeholder}
/>
)
}
When I hit the spacebar, it just doesn't update the state, and I don't know why. Does anyone know what I'm doing wrong, every other key works and updates the state.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|