Skip to content

Commit

Permalink
fix issue in dev ui logstream that register listener on all select el…
Browse files Browse the repository at this point in the history
…ements.

Signed-off-by:Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Aug 30, 2021
1 parent 45511d9 commit 2e6fb15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function populateLoggerLevelModal(loggerNamesArray, levelNamesArray){
tbodyLevels.append(row);
}

$('select').on('change', function() {
$('.logleveldropdown').on('change', function() {
changeLogLevel(this.value, $(this).find('option:selected').text());
});

Expand Down Expand Up @@ -764,7 +764,7 @@ function getTextClass(level){

function createDropdown(name, level, levelNamesArray){

var dd = "<select class='custom-select custom-select-sm'>";
var dd = "<select class='logleveldropdown custom-select custom-select-sm'>";
// Populate the dropdown
for (var i = 0; i < levelNamesArray.length; i++) {
var selected = "";
Expand Down

0 comments on commit 2e6fb15

Please sign in to comment.