slate-react
Advanced tools
Comparing version 0.10.17 to 0.10.18
@@ -98,3 +98,6 @@ 'use strict'; | ||
_this.componentDidMount = function () { | ||
var editor = _this.props.editor; | ||
// Restrict scoped of `beforeinput` to mobile. | ||
if ((_environment.IS_IOS || _environment.IS_ANDROID) && _environment.SUPPORTED_EVENTS.beforeinput) { | ||
@@ -107,3 +110,3 @@ _this.element.addEventListener('beforeinput', _this.onNativeBeforeInput); | ||
if (_this.props.autoFocus) { | ||
_this.element.focus(); | ||
editor.focus(); | ||
} | ||
@@ -110,0 +113,0 @@ }; |
{ | ||
"name": "slate-react", | ||
"description": "A set of React components for building completely customizable rich-text editors.", | ||
"version": "0.10.17", | ||
"version": "0.10.18", | ||
"license": "MIT", | ||
@@ -19,6 +19,6 @@ "repository": "git://github.com/ianstormtaylor/slate.git", | ||
"selection-is-backward": "^1.0.0", | ||
"slate-base64-serializer": "^0.2.13", | ||
"slate-base64-serializer": "^0.2.14", | ||
"slate-dev-logger": "^0.1.36", | ||
"slate-plain-serializer": "^0.4.11", | ||
"slate-prop-types": "^0.4.11" | ||
"slate-plain-serializer": "^0.4.12", | ||
"slate-prop-types": "^0.4.12" | ||
}, | ||
@@ -28,3 +28,3 @@ "peerDependencies": { | ||
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0", | ||
"slate": "^0.31.3" | ||
"slate": "^0.31.4" | ||
}, | ||
@@ -35,5 +35,5 @@ "devDependencies": { | ||
"mocha": "^2.5.3", | ||
"slate": "^0.31.3", | ||
"slate-hyperscript": "^0.4.11", | ||
"slate-simulator": "^0.4.11", | ||
"slate": "^0.31.4", | ||
"slate-hyperscript": "^0.4.12", | ||
"slate-simulator": "^0.4.12", | ||
"uglify-js": "^2.7.0" | ||
@@ -40,0 +40,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
747068
15204