Skip to content

Commit e6c9821

Browse files
committed
Fixed tracker icon default value
Signed-off-by: Ko Nagase <[email protected]>
1 parent ac1ecce commit e6c9821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/gtt-setting.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export const gtt_setting = ():void => {
66
const glyph = FontSymbol.prototype.defs.glyphs
77
document.querySelectorAll("[id^='settings_tracker_']").forEach((element: HTMLSelectElement) => {
88
const selectedValue = element.value
9-
if (element.length === 1) {
9+
if (element.length === 1 && selectedValue !== "") {
1010
element.remove(0)
11+
element.append(new Option("", "", false, false))
1112
}
1213
for (let font in FontSymbol.prototype.defs.fonts) {
1314
for (let i in glyph) {

0 commit comments

Comments
 (0)