slate-react 0.98.3 → 0.98.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slate.d.ts.map +1 -1
- package/dist/index.es.js +0 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +0 -3
- package/dist/slate-react.min.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5281,8 +5281,6 @@ var Slate = function Slate(props) {
|
|
|
5281
5281
|
initialValue = props.initialValue,
|
|
5282
5282
|
rest = _objectWithoutProperties(props, _excluded);
|
|
5283
5283
|
|
|
5284
|
-
var unmountRef = React.useRef(false);
|
|
5285
|
-
|
|
5286
5284
|
var _React$useState = React__default['default'].useState(function () {
|
|
5287
5285
|
if (!slate.Node.isNodeList(initialValue)) {
|
|
5288
5286
|
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(slate.Scrubber.stringify(initialValue)));
|
|
@@ -5324,7 +5322,6 @@ var Slate = function Slate(props) {
|
|
|
5324
5322
|
EDITOR_TO_ON_CHANGE.set(editor, onContextChange);
|
|
5325
5323
|
return function () {
|
|
5326
5324
|
EDITOR_TO_ON_CHANGE.set(editor, function () {});
|
|
5327
|
-
unmountRef.current = true;
|
|
5328
5325
|
};
|
|
5329
5326
|
}, [editor, onContextChange]);
|
|
5330
5327
|
|