Skip to content

Commit 2ef4908

Browse files
committed
refine hetero-list buttons for converted inputs
1 parent 396f78b commit 2ef4908

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/js/components/dropdowns/hetero-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ function convertInputsToButtons(e) {
2727
let btn = document.createElement("button");
2828
btn.setAttribute("type", "button");
2929
btn.classList.add("hetero-list-add", "jenkins-button");
30-
btn.innerText = oldbtn.getAttribute("value");
30+
let plus = createElementFromHtml(Symbols.PLUS);
31+
btn.appendChild(plus);
32+
btn.appendChild(document.createTextNode(oldbtn.getAttribute("value")));
3133
if (oldbtn.hasAttribute("suffix")) {
3234
btn.setAttribute("suffix", oldbtn.getAttribute("suffix"));
3335
}
34-
let chevron = createElementFromHtml(Symbols.CHEVRON_DOWN);
35-
btn.appendChild(chevron);
3636
oldbtn.parentNode.appendChild(btn);
3737
oldbtn.remove();
3838
});

src/main/js/util/symbols.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)