mirror of
https://github.com/flarum/core.git
synced 2025-05-08 16:35:26 +02:00
Fix infinite loop when @mentioning in a discussion composer
This commit is contained in:
parent
473963087b
commit
004e8919b6
@ -54,8 +54,8 @@ export default class DiscussionComposer extends ComposerBody {
|
|||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
onload(element) {
|
onload(element, isInitialized, context) {
|
||||||
super.onload(element);
|
super.onload(element, isInitialized, context);
|
||||||
|
|
||||||
this.editor.$('textarea').keydown((e) => {
|
this.editor.$('textarea').keydown((e) => {
|
||||||
if (e.which === 8 && e.target.selectionStart == 0 && e.target.selectionEnd == 0) { // Backspace
|
if (e.which === 8 && e.target.selectionStart == 0 && e.target.selectionEnd == 0) { // Backspace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user