fix: selection bug

backup
flop 3 weeks ago
parent 495f76aaad
commit 8a743736fe
  1. 2
      ts/src/browser.ts

@ -763,7 +763,7 @@ const MetaPanel: m.Component = {
activeSecIndex !== null && setSectionType(activeSecIndex, (e.target as HTMLSelectElement).value),
},
Object.values(MonoDisplay.SectionTypeToString).map(name =>
m("option", { value: name }, name)
m("option", { value: name, selected: name === MonoDisplay.SectionTypeToString[section.sectionType] }, name)
)
)
: m("span.meta-val.green", "-"),

Loading…
Cancel
Save