@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.cjs.js
CHANGED
|
@@ -6499,21 +6499,18 @@ var Form = function Form(_ref) {
|
|
|
6499
6499
|
formikProps: {
|
|
6500
6500
|
initialValues: INITIAL_VALUES,
|
|
6501
6501
|
validationSchema: SEND_MESSAGE_FORM_SCHEMA,
|
|
6502
|
-
validateOnBlur: true,
|
|
6503
|
-
validateOnChange: true,
|
|
6504
6502
|
onSubmit: handleSubmit
|
|
6505
6503
|
}
|
|
6506
6504
|
}, function (_ref4) {
|
|
6507
6505
|
var dirty = _ref4.dirty,
|
|
6508
6506
|
isSubmitting = _ref4.isSubmitting,
|
|
6509
|
-
|
|
6507
|
+
setValues = _ref4.setValues;
|
|
6510
6508
|
var handleTemplateChange = function handleTemplateChange(_ref5) {
|
|
6511
6509
|
var value = _ref5.value;
|
|
6512
6510
|
var template = pure.findBy({
|
|
6513
6511
|
id: value
|
|
6514
6512
|
}, templates);
|
|
6515
|
-
|
|
6516
|
-
setFieldValue("body", template.body);
|
|
6513
|
+
setValues(template);
|
|
6517
6514
|
editorRef.current.editor.commands.setContent(template.body);
|
|
6518
6515
|
};
|
|
6519
6516
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Select, {
|