contentoh-components-library 21.4.134 → 21.4.135
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.
|
@@ -696,17 +696,15 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
696
696
|
button1: {
|
|
697
697
|
name: "Enviar",
|
|
698
698
|
action: function action(e) {
|
|
699
|
-
|
|
700
|
-
var textArea = document.querySelector("#area").value;
|
|
701
|
-
var deleteSpaces = textArea.trim();
|
|
699
|
+
var textArea = document.querySelector("#area");
|
|
702
700
|
|
|
703
|
-
if (
|
|
701
|
+
if (textArea.value.trim()) {
|
|
704
702
|
textArea.style.border = "none";
|
|
705
|
-
createComment(e, textArea.value);
|
|
703
|
+
createComment(e, textArea.value.trim());
|
|
706
704
|
showGlobalModal("commentsSent");
|
|
707
705
|
validatedAll ? validateAll("R") : sendEvaluation("R");
|
|
708
706
|
} else {
|
|
709
|
-
|
|
707
|
+
textArea.style.border = "2px solid red";
|
|
710
708
|
}
|
|
711
709
|
}
|
|
712
710
|
}
|
package/package.json
CHANGED
|
@@ -360,17 +360,14 @@ export const ProviderProductEdition = ({
|
|
|
360
360
|
button1: {
|
|
361
361
|
name: "Enviar",
|
|
362
362
|
action: (e) => {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
let deleteSpaces = textArea.trim();
|
|
366
|
-
if (deleteSpaces !== "") {
|
|
363
|
+
const textArea = document.querySelector("#area");
|
|
364
|
+
if (textArea.value.trim()) {
|
|
367
365
|
textArea.style.border = "none";
|
|
368
|
-
createComment(e, textArea.value);
|
|
366
|
+
createComment(e, textArea.value.trim());
|
|
369
367
|
showGlobalModal("commentsSent");
|
|
370
368
|
validatedAll ? validateAll("R") : sendEvaluation("R");
|
|
371
369
|
} else {
|
|
372
|
-
|
|
373
|
-
"2px solid red";
|
|
370
|
+
textArea.style.border = "2px solid red";
|
|
374
371
|
}
|
|
375
372
|
},
|
|
376
373
|
},
|