Display a default selection

[MAILPOET-2963]
This commit is contained in:
Pavel Dohnal
2020-07-06 13:12:44 +02:00
committed by Veljko V
parent 5c9d844e0d
commit a469cd3097
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ const CloseButtonsSettings = ({
(sel) => sel('mailpoet-form-editor').getCloseIconsUrl(), (sel) => sel('mailpoet-form-editor').getCloseIconsUrl(),
[] []
); );
const current = value ?? 'round_white';
return ( return (
<div> <div>
<h3 className="mailpoet-styles-settings-heading"> <h3 className="mailpoet-styles-settings-heading">

View File

@ -146,7 +146,7 @@ class DisplayFormInWPContent {
'form_type' => $displayType, 'form_type' => $displayType,
'styles' => $this->formRenderer->renderStyles($formData, '#' . $htmlId, $displayType), 'styles' => $this->formRenderer->renderStyles($formData, '#' . $htmlId, $displayType),
'html' => $this->formRenderer->renderHTML($formData), 'html' => $this->formRenderer->renderHTML($formData),
'close_button_icon' => $formSettings['close_button'] ?? 'classic', 'close_button_icon' => $formSettings['close_button'] ?? 'round_white',
]; ];
// (POST) non ajax success/error variables // (POST) non ajax success/error variables