Skip to content

Commit

Permalink
keep options sorted in showcase app
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarcon committed Mar 11, 2024
1 parent f4a7c94 commit d1ae860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/support/live_select_web/live/showcase_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ defmodule LiveSelectWeb.ShowcaseLive do
def handle_info({:update_live_select, %{"id" => id}, options}, socket) do
options =
options
|> Enum.sort()
|> Enum.map(&value_mapper/1)

send_update(Component, id: id, options: options)
Expand Down

0 comments on commit d1ae860

Please sign in to comment.