slate-react 0.91.8 → 0.91.9

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/index.js CHANGED
@@ -3695,6 +3695,10 @@ var Children = function Children(props) {
3695
3695
  var Editable = function Editable(props) {
3696
3696
  var _EDITOR_TO_PLACEHOLDE, _EDITOR_TO_PLACEHOLDE2;
3697
3697
 
3698
+ var defaultRenderPlaceholder = React.useCallback(function (props) {
3699
+ return /*#__PURE__*/React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, props));
3700
+ }, []);
3701
+
3698
3702
  var autoFocus = props.autoFocus,
3699
3703
  _props$decorate = props.decorate,
3700
3704
  decorate = _props$decorate === void 0 ? defaultDecorate : _props$decorate,
@@ -3705,9 +3709,7 @@ var Editable = function Editable(props) {
3705
3709
  renderElement = props.renderElement,
3706
3710
  renderLeaf = props.renderLeaf,
3707
3711
  _props$renderPlacehol = props.renderPlaceholder,
3708
- renderPlaceholder = _props$renderPlacehol === void 0 ? function (props) {
3709
- return /*#__PURE__*/React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, props));
3710
- } : _props$renderPlacehol,
3712
+ renderPlaceholder = _props$renderPlacehol === void 0 ? defaultRenderPlaceholder : _props$renderPlacehol,
3711
3713
  _props$scrollSelectio = props.scrollSelectionIntoView,
3712
3714
  scrollSelectionIntoView = _props$scrollSelectio === void 0 ? defaultScrollSelectionIntoView : _props$scrollSelectio,
3713
3715
  _props$style = props.style,