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