gd-bs 6.6.39 → 6.6.41

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.
@@ -625,8 +625,15 @@ var FormControl = /** @class */ (function () {
625
625
  if (this._el) {
626
626
  // See if this is a row
627
627
  if (this._el.parentElement && this._el.parentElement.parentElement && this._el.parentElement.parentElement.classList.contains("row")) {
628
- // Hide the row element
629
- this._el.parentElement.parentElement.classList.add("d-none");
628
+ // See if there are other controls in this row
629
+ if (this._el.parentElement.parentElement.querySelectorAll(".col").length > 1) {
630
+ // Hide the column element
631
+ this._el.parentElement.classList.add("d-none");
632
+ }
633
+ else {
634
+ // Hide the row element
635
+ this._el.parentElement.parentElement.classList.add("d-none");
636
+ }
630
637
  }
631
638
  // Else, ensure the parent element exists
632
639
  else if (this._el.parentElement) {
@@ -727,8 +734,15 @@ var FormControl = /** @class */ (function () {
727
734
  if (this._el) {
728
735
  // See if this is a row
729
736
  if (this._el.parentElement && this._el.parentElement.parentElement && this._el.parentElement.parentElement.classList.contains("row")) {
730
- // Show the row element
731
- this._el.parentElement.parentElement.classList.remove("d-none");
737
+ // See if there are other controls in this row
738
+ if (this._el.parentElement.parentElement.querySelectorAll(".col").length > 1) {
739
+ // Show the column element
740
+ this._el.parentElement.classList.remove("d-none");
741
+ }
742
+ else {
743
+ // Show the row element
744
+ this._el.parentElement.parentElement.classList.remove("d-none");
745
+ }
732
746
  }
733
747
  // Else, ensure the parent element exists
734
748
  else if (this._el.parentElement) {