Skip to content

Commit

Permalink
Merge pull request #3 from cofinley/midi-select-fix
Browse files Browse the repository at this point in the history
Add default select option for midi selection
  • Loading branch information
cofinley authored Nov 8, 2023
2 parents eda4953 + ff13ec2 commit df7e5dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/why_does_that_sound_good/components/settings_panel.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
[:select.flex.p-2.rounded.dark:bg-neutral-700.dark:text-neutral-100.border.dark:border-neutral-500
{:on-change #(re-frame/dispatch [::events/on-midi-select-input (-> % .-target .-value)])
:value (if (nil? current-input) "" current-input)}
[:option "Select"]
(for [input inputs]
^{:key (.-id input)}
[:option (.-name input)])]]
[:label.font-bold "MIDI Output"
[:select.flex.p-2.rounded.dark:bg-neutral-700.dark:text-neutral-100.border.dark:border-neutral-500
{:on-change #(re-frame/dispatch [::events/on-midi-select-output (-> % .-target .-value)])
:value (if (nil? current-output) "" current-output)}
[:option "Select"]
(for [output outputs]
^{:key (.-id output)}
[:option (.-name output)])]]
Expand Down

0 comments on commit df7e5dc

Please sign in to comment.