Skip to content

Commit

Permalink
LEAF 4139 find alt solution for chosen dropbox behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
aerinkayne committed Nov 18, 2023
1 parent e4930ed commit d402b23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions LEAF_Nexus/js/orgchartForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ orgchartForm.prototype.getForm = function (UID, categoryID, indicatorID) {
event
) {
if (event.which == 13) {
setTimeout(() => { //timeout needed for ind 2 chosen dropdown
let elChosenDrop = null;
if(event.target.classList.contains('chosen-search-input')) {
elChosenDrop = document.querySelector('.chosen-with-drop');
}
if(elChosenDrop === null) { //if a chosen dropdown box is still open, the first enter will just close it.
$("#" + dialog.btnSaveID).trigger("click");
}, 100);
}
}
});
},
Expand Down

0 comments on commit d402b23

Please sign in to comment.