Skip to content

Commit 9a77cf1

Browse files
committed
Fix problem with some translations containig non ASCII characters
Fixes #128
1 parent c87ffc4 commit 9a77cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/plugins/Menu/Dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Dropdown extends MenuItem {
8484
showContent() {
8585
this.contentDom.style.display = 'block';
8686
jQuery(document).on(
87-
`mousedown.prosemirror${btoa(this.options.label)}`,
87+
`mousedown.prosemirror${btoa(encodeURIComponent(this.options.label))}`,
8888
this.closeOnNextClick.bind(this, Date.now()),
8989
);
9090
}
@@ -113,7 +113,7 @@ class Dropdown extends MenuItem {
113113
*/
114114
hideContent() {
115115
this.contentDom.style.display = 'none';
116-
jQuery(document).off(`mousedown.prosemirror${btoa(this.options.label)}`);
116+
jQuery(document).off(`mousedown.prosemirror${btoa(encodeURIComponent(this.options.label))}`);
117117
}
118118

119119
/**

0 commit comments

Comments
 (0)