Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rachidatecs committed Sep 5, 2024
1 parent 7d2c7a5 commit a6b9d79
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/registrar/assets/js/get-gov.js
Original file line number Diff line number Diff line change
Expand Up @@ -2044,17 +2044,9 @@ document.addEventListener('DOMContentLoaded', function() {

// Use a MutationObserver to watch for changes in the dropdown list
const dropdownList = comboBox.querySelector(`#${input.id}--list`);
// TODO: customize blank value
// const isSuborgComboBox = comboBox.querySelector('#id_sub_organization--list');
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.type === "childList") {
// TODO: customize blank value
// if (isSuborgComboBox) {
// addBlankOption(clearInputButton, dropdownList, initialValue, 'No suborganization');
// } else {
// addBlankOption(clearInputButton, dropdownList, initialValue);
// }
addBlankOption(clearInputButton, dropdownList, initialValue);
}
});
Expand Down Expand Up @@ -2110,8 +2102,6 @@ document.addEventListener('DOMContentLoaded', function() {
}
}

// TODO: customize blank value
// function addBlankOption(clearInputButton, dropdownList, initialValue, customBlank) {
function addBlankOption(clearInputButton, dropdownList, initialValue) {
if (dropdownList && !dropdownList.querySelector('[data-value=""]') && !isTyping) {
const blankOption = document.createElement("li");
Expand All @@ -2121,8 +2111,6 @@ document.addEventListener('DOMContentLoaded', function() {
if (!initialValue){
blankOption.classList.add("usa-combo-box__list-option--selected")
}
// TODO: customize blank value
// customBlank ? blankOption.textContent = customBlank : blankOption.textContent = "---------";
blankOption.textContent = "⎯";

dropdownList.insertBefore(blankOption, dropdownList.firstChild);
Expand Down

0 comments on commit a6b9d79

Please sign in to comment.