Skip to content

Commit

Permalink
Moved new methods into just the drop-down/edit controls. not on all d…
Browse files Browse the repository at this point in the history
…ropdowns
  • Loading branch information
liefeld committed Aug 12, 2024
1 parent 053d349 commit 49a54c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions website/js/createChoiceDiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ function buildChoiceDiv(selectChoiceDiv, choiceInfo, paramDetails, parameterName
valueList = [elem.val()];
updateValuesForGroup(groupId, paramName, valueList);
} );
}


$( choice ).on("change", function(e) {
$( choice ).on("change", function(e) {
e.target.setAttribute("placeholder", e.target.value);
e.target.value = "";
});
Expand All @@ -202,6 +199,10 @@ function buildChoiceDiv(selectChoiceDiv, choiceInfo, paramDetails, parameterName
$( choice ).on("blur", function(e) {
e.target.value = e.target.getAttribute("placeholder");
});
}




if(paramDetails.allowMultiple)
{
Expand Down

0 comments on commit 49a54c1

Please sign in to comment.