1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-07 07:46:32 +02:00

fix arrow key breaking bug

This commit is contained in:
Ian Storm Taylor
2016-07-19 11:32:48 -07:00
parent 5c5c92bff3
commit 1e433b36ae

View File

@@ -263,7 +263,7 @@ class Content extends React.Component {
if ( if (
this.tmp.isComposing && this.tmp.isComposing &&
key == 'left' || key == 'right' || key == 'up' || key == 'down' (key == 'left' || key == 'right' || key == 'up' || key == 'down')
) { ) {
e.preventDefault() e.preventDefault()
return return