@capillarytech/creatives-library 2.0.98 → 2.0.100

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "2.0.98",
4
+ "version": "2.0.100",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -217,7 +217,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
217
217
  // this.showNext();
218
218
  // }
219
219
  const {isFullMode, isGetFormData} = nextProps;
220
- if (isFullMode && isGetFormData && !_.isEqual(isGetFormData, this.props.isGetFormData)) {
220
+ if (isFullMode && isGetFormData && !_.isEqual(isGetFormData, this.props.isGetFormData) && !this.state.isDragDrop) {
221
+ //only for ck editor
221
222
  //when create button is clicked in full mode
222
223
  this.startValidation(true);
223
224
  }
@@ -975,7 +976,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
975
976
  }
976
977
  });
977
978
  if (saveCount === 0) {
978
- this.startValidation();
979
+ //gets exicuted when ck editor is used
980
+ this.startValidation(true);
979
981
  return;
980
982
  }
981
983
  this.setState({targetSaveCount: saveCount, mode: "save", saveCount: 0, cmsDataCount: 0}, () => {