0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

FIX: ensure element is present before passing on insertText event

Dieser Commit ist enthalten in:
Angus McLeod 2023-05-23 10:10:52 +02:00
Ursprung 6dbd8f7c4f
Commit 4cdfdbf9d5

Datei anzeigen

@ -69,7 +69,7 @@ export default {
}, },
_wizardInsertText(text, options) { _wizardInsertText(text, options) {
if (this.session.wizardEventFieldId === this.fieldId) { if (this.session.wizardEventFieldId === this.fieldId && this.element) {
this.insertText(text, options); this.insertText(text, options);
} }
}, },