Skip to content

Commit 6059f56

Browse files
committed
hide prompt option in select dropdown while keeping placeholder functionality
1 parent 4757c31 commit 6059f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/components/core_components.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ defmodule AlgoraWeb.CoreComponents do
811811
multiple={@multiple}
812812
{@rest}
813813
>
814-
<option :if={@prompt} value="">{@prompt}</option>
814+
<option :if={@prompt} value="" class="hidden">{@prompt}</option>
815815
{Phoenix.HTML.Form.options_for_select(@options, @value)}
816816
</select>
817817
<.error :for={msg <- @errors}>{msg}</.error>

0 commit comments

Comments
 (0)