From 39a03a7b25b4f8f2a0b6dc63bd9cce3982d620c9 Mon Sep 17 00:00:00 2001 From: oleksander-kurilchik Date: Sun, 1 Aug 2021 19:38:19 +0300 Subject: [PATCH] Fix bug Summit form if grapesjs is located inside the form --- src/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.js b/src/commands.js index 2fbe7ab..b865d6d 100644 --- a/src/commands.js +++ b/src/commands.js @@ -86,6 +86,7 @@ export default (editor, opts = {}) => { getContentActions() { const { editor } = this; const btn = document.createElement('button'); + btn.setAttribute('type', 'button'); const pfx = editor.getConfig('stylePrefix'); btn.innerHTML = opts.buttonLabel; btn.className = `${pfx}btn-prim ${pfx}btn-import__custom-code`;