@capillarytech/creatives-library 8.0.88-alpha.2 → 8.0.88-alpha.3
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 +1 -1
- package/v2Containers/Zalo/index.js +2 -10
package/package.json
CHANGED
|
@@ -291,19 +291,11 @@ export const Zalo = (props) => {
|
|
|
291
291
|
minLength,
|
|
292
292
|
maxLength,
|
|
293
293
|
});
|
|
294
|
-
} else if (e.length > maxLength) {
|
|
295
|
-
if (containsTags) {
|
|
296
|
-
// Show warning message for tag values
|
|
297
|
-
error = formatMessage(messages.tagLengthWarning, {
|
|
298
|
-
maxLength,
|
|
299
|
-
});
|
|
300
|
-
} else {
|
|
301
|
-
// Show error message for static values
|
|
294
|
+
} else if (e.length > maxLength && !containsTags) {
|
|
302
295
|
error = formatMessage(messages.maxMinLengthMessage, {
|
|
303
296
|
minLength,
|
|
304
297
|
maxLength,
|
|
305
298
|
});
|
|
306
|
-
}
|
|
307
299
|
}
|
|
308
300
|
return error;
|
|
309
301
|
};
|
|
@@ -420,7 +412,7 @@ export const Zalo = (props) => {
|
|
|
420
412
|
const { name = '', value = '', maxLength = '' } = listParam;
|
|
421
413
|
const containsTags = value && value.includes('{{') && value.includes('}}');
|
|
422
414
|
const isExceedingLength = value.length > maxLength;
|
|
423
|
-
|
|
415
|
+
console.log('***Length***',containsTags, isExceedingLength);
|
|
424
416
|
return (
|
|
425
417
|
<>
|
|
426
418
|
{renderTextBoxesForListParams(listParam)}
|