@luftborn/custom-elements 2.15.5 → 2.15.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/demo/index.min.js CHANGED
@@ -4058,6 +4058,8 @@ var CheckBoxElement = /** @class */ (function (_super) {
4058
4058
  if (!fieldset) {
4059
4059
  fieldset = document.createElement('fieldset');
4060
4060
  wrapper.appendChild(fieldset);
4061
+ }
4062
+ if (fieldset.children.length === 0) {
4061
4063
  this.options.forEach(function (element, index) {
4062
4064
  fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.checkboxTemplate, _this.name, element, _this.name + "-" + index));
4063
4065
  });
@@ -6275,6 +6277,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6275
6277
  if (!fieldset) {
6276
6278
  fieldset = document.createElement('fieldset');
6277
6279
  wrapper.appendChild(fieldset);
6280
+ }
6281
+ if (fieldset.children.length === 0) {
6278
6282
  this.options.forEach(function (element, index) {
6279
6283
  fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.radioButtonTemplate, _this.name, element, _this.name + "-" + index, "" + (_this.required ? 'required' : '')));
6280
6284
  });