PR changes

This commit is contained in:
Alex Janousek
2025-10-28 17:42:25 -04:00
parent c273d5dd6f
commit 3ec039cdf7
4 changed files with 63 additions and 19 deletions

View File

@@ -1,8 +1,6 @@
(function (window) {
"use strict";
const USWDS = window.USWDS || {};
function Summary (module) {
this.module = module;
this.el = module.formGroup.querySelector('.selection-summary');
@@ -26,9 +24,11 @@
if (this.fieldLabel === 'folder') { this.text.classList.add('selection-summary__text--folders'); }
this.el.setAttribute('id', hint.getAttribute('id'));
if (hint) {
this.el.setAttribute('id', hint.getAttribute('id'));
hint.remove();
}
this.el.appendChild(this.text);
hint.remove();
};
Summary.prototype.update = function(selection) {
let template;
@@ -222,8 +222,6 @@
this.updateToggleButtonText();
};
CollapsibleCheckboxes.prototype.bindEvents = function() {
const self = this;
this.formGroup.addEventListener('click', (e) => {
if (e.target.closest('.usa-button')) {
this.handleClick.call(this, e);