mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
fix hovering toolbar format hotkeys (#3667)
This commit is contained in:
@@ -18,6 +18,7 @@ const HoveringMenuExample = () => {
|
||||
renderLeaf={props => <Leaf {...props} />}
|
||||
placeholder="Enter some text..."
|
||||
onDOMBeforeInput={event => {
|
||||
event.preventDefault()
|
||||
switch (event.inputType) {
|
||||
case 'formatBold':
|
||||
return toggleFormat(editor, 'bold')
|
||||
|
Reference in New Issue
Block a user