fix: signature editor form is submitted on menu open (set menu button element 'type' to 'button')

This commit is contained in:
Sergey Mosin 2024-03-15 11:42:32 -04:00
parent c18ae6477d
commit 7c6d2ad423
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@ class CompactComposerPlugin extends \RainLoop\Plugins\AbstractPlugin
NAME = 'Compact Composer', NAME = 'Compact Composer',
AUTHOR = 'Sergey Mosin', AUTHOR = 'Sergey Mosin',
URL = 'https://github.com/the-djmaze/snappymail/pull/1466', URL = 'https://github.com/the-djmaze/snappymail/pull/1466',
VERSION = '1.0.1', VERSION = '1.0.2',
RELEASE = '2024-02-23', RELEASE = '2024-02-23',
REQUIRED = '2.34.0', REQUIRED = '2.34.0',
LICENSE = 'AGPL v3', LICENSE = 'AGPL v3',

View file

@ -701,6 +701,7 @@
menuWrap.className += ' squire-html-mode-item'; menuWrap.className += ' squire-html-mode-item';
} }
const menuBtn = createElement('button'); const menuBtn = createElement('button');
menuBtn.type = 'button';
menuBtn.className = 'btn dropdown-toggle'; menuBtn.className = 'btn dropdown-toggle';
if (item.icon !== '') { if (item.icon !== '') {
menuBtn.innerHTML = item.icon; menuBtn.innerHTML = item.icon;