mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 13:30:47 +08: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;
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user