@bigbinary/neeto-message-templates-frontend 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6467,21 +6467,18 @@ var Form = function Form(_ref) {
|
|
|
6467
6467
|
formikProps: {
|
|
6468
6468
|
initialValues: INITIAL_VALUES,
|
|
6469
6469
|
validationSchema: SEND_MESSAGE_FORM_SCHEMA,
|
|
6470
|
-
validateOnBlur: true,
|
|
6471
|
-
validateOnChange: true,
|
|
6472
6470
|
onSubmit: handleSubmit
|
|
6473
6471
|
}
|
|
6474
6472
|
}, function (_ref4) {
|
|
6475
6473
|
var dirty = _ref4.dirty,
|
|
6476
6474
|
isSubmitting = _ref4.isSubmitting,
|
|
6477
|
-
|
|
6475
|
+
setValues = _ref4.setValues;
|
|
6478
6476
|
var handleTemplateChange = function handleTemplateChange(_ref5) {
|
|
6479
6477
|
var value = _ref5.value;
|
|
6480
6478
|
var template = findBy({
|
|
6481
6479
|
id: value
|
|
6482
6480
|
}, templates);
|
|
6483
|
-
|
|
6484
|
-
setFieldValue("body", template.body);
|
|
6481
|
+
setValues(template);
|
|
6485
6482
|
editorRef.current.editor.commands.setContent(template.body);
|
|
6486
6483
|
};
|
|
6487
6484
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, {
|