From cdaa8d68d8e62beba86dc7599654541a6155ce01 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Thu, 3 Jun 2021 11:13:11 +0200 Subject: [PATCH] Change the event for updating header When using the apple inserter for emojis there is no keyup event and the new value was not set on model and thus not saved. [MAILPOET-3564] --- assets/js/src/newsletter_editor/components/heading.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/src/newsletter_editor/components/heading.js b/assets/js/src/newsletter_editor/components/heading.js index 1c56b73e9f..dbfdcae025 100644 --- a/assets/js/src/newsletter_editor/components/heading.js +++ b/assets/js/src/newsletter_editor/components/heading.js @@ -16,8 +16,8 @@ Module.HeadingView = Marionette.View.extend({ }, events: function () { // eslint-disable-line func-names return { - 'keyup .mailpoet_input_title': _.partial(this.changeField, 'subject'), - 'keyup .mailpoet_input_preheader': _.partial(this.changeField, 'preheader'), + 'change .mailpoet_input_title': _.partial(this.changeField, 'subject'), + 'change .mailpoet_input_preheader': _.partial(this.changeField, 'preheader'), 'change #mailpoet_heading_email_type': (event) => { App.getChannel().trigger('changeWCEmailType', event.target.value); },