Skip to content

Commit

Permalink
Fix #4731: also update UI value when the value becomes blank
Browse files Browse the repository at this point in the history
  • Loading branch information
avernet committed Dec 30, 2020
1 parent 1144f67 commit c323bbc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ private class Select1SearchCompanion extends XBLCompanion {
initialOption.value = initialValue
initialOption.selected = true
htmlSelect.appendChild(initialOption)
} else {
while (htmlSelect.hasChildNodes())
htmlSelect.removeChild(htmlSelect.firstChild)
}
}

Expand Down

0 comments on commit c323bbc

Please sign in to comment.