gd-bs 5.3.5 → 5.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.3.5",
3
+ "version": "5.3.6",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -632,6 +632,15 @@ export class FormControl implements IFormControl {
632
632
 
633
633
  // Update the display
634
634
  elMessage.style.display = validation.isValid ? "" : "block";
635
+ } else {
636
+ // See if there is valid feedback
637
+ let validClassName = useTooltip ? "valid-tooltip" : "valid-feedback";
638
+ let elMessage = elFormControl.parentNode.querySelector("." + validClassName) as HTMLElement;
639
+ if (elMessage) {
640
+ // Clear the message
641
+ elMessage.innerHTML = "";
642
+ elMessage.style.display = "";
643
+ }
635
644
  }
636
645
 
637
646
  // See if there is valid feedback
@@ -651,6 +660,15 @@ export class FormControl implements IFormControl {
651
660
 
652
661
  // Update the display
653
662
  elMessage.style.display = validation.isValid ? "block" : "";
663
+ } else {
664
+ // See if there is invalid feedback
665
+ let invalidClassName = useTooltip ? "invalid-tooltip" : "invalid-feedback";
666
+ let elMessage = elFormControl.parentNode.querySelector("." + invalidClassName) as HTMLElement;
667
+ if (elMessage) {
668
+ // Clear the message
669
+ elMessage.innerHTML = "";
670
+ elMessage.style.display = "";
671
+ }
654
672
  }
655
673
  }
656
674
  }