File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
public/editor/modules/layout/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react'
3
3
import ReactDOM from 'react-dom'
4
4
import ContentControls from 'public/components/layoutHelpers/contentControls/component'
5
5
import ColumnResizer from 'public/components/columnResizer/columnResizer'
6
- import { isEqual , defer , cloneDeep } from 'lodash'
6
+ import { isEqual , defer , cloneDeep , debounce } from 'lodash'
7
7
import PropTypes from 'prop-types'
8
8
import EmptyCommentElementWrapper from './emptyCommentElementWrapper.tsx'
9
9
import ElementInner from './elementInner'
@@ -28,7 +28,7 @@ export default class Element extends React.Component {
28
28
29
29
constructor ( props ) {
30
30
super ( props )
31
- this . dataUpdate = this . dataUpdate . bind ( this )
31
+ this . dataUpdate = debounce ( this . dataUpdate . bind ( this ) , 20 )
32
32
this . elementComponentTransformation = this . elementComponentTransformation . bind ( this )
33
33
this . getEditorProps = this . getEditorProps . bind ( this )
34
34
this . elementComponentRef = React . createRef ( )
You can’t perform that action at this time.
0 commit comments