We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87ffc4 commit 9a77cf1Copy full SHA for 9a77cf1
script/plugins/Menu/Dropdown.js
@@ -84,7 +84,7 @@ class Dropdown extends MenuItem {
84
showContent() {
85
this.contentDom.style.display = 'block';
86
jQuery(document).on(
87
- `mousedown.prosemirror${btoa(this.options.label)}`,
+ `mousedown.prosemirror${btoa(encodeURIComponent(this.options.label))}`,
88
this.closeOnNextClick.bind(this, Date.now()),
89
);
90
}
@@ -113,7 +113,7 @@ class Dropdown extends MenuItem {
113
*/
114
hideContent() {
115
this.contentDom.style.display = 'none';
116
- jQuery(document).off(`mousedown.prosemirror${btoa(this.options.label)}`);
+ jQuery(document).off(`mousedown.prosemirror${btoa(encodeURIComponent(this.options.label))}`);
117
118
119
/**
0 commit comments