diff --git a/src/commands/index.js b/src/commands/index.js index c56f2607e..59f7538c4 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -147,7 +147,7 @@ module.exports = () => { const event = opts && opts.event; const sel = ed.getSelected(); const toolbarStyle = ed.Canvas.getToolbarEl().style; - const nativeDrag = event.type == 'dragstart'; + const nativeDrag = event && event.type == 'dragstart'; const hideTlb = () => { toolbarStyle.display = 'none';