fix: selection bug

typescript_changes
flop 3 weeks ago
parent cca5be7e23
commit f674459af9
  1. 2
      ts/src/browser.ts

@ -763,7 +763,7 @@ const MetaPanel: m.Component = {
activeSecIndex !== null && setSectionType(activeSecIndex, (e.target as HTMLSelectElement).value), activeSecIndex !== null && setSectionType(activeSecIndex, (e.target as HTMLSelectElement).value),
}, },
Object.values(MonoDisplay.SectionTypeToString).map(name => 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", "-"), : m("span.meta-val.green", "-"),

Loading…
Cancel
Save