Skip to content

Commit

Permalink
Fix hidden at loading
Browse files Browse the repository at this point in the history
  • Loading branch information
bluzky committed Dec 8, 2024
1 parent fce00ef commit 1d25dc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/salad_ui/select.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ defmodule SaladUI.Select do
<div
data-part="content"
data-side={@side}
hidden
class={
classes([
"select-content absolute",
"z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md group-data-[state=open]:animate-in group-data-[state=closed]:animate-out group-data-[state=closed]:fade-out-0 group-data-[state=open]:fade-in-0 group-data-[state=closed]:zoom-out-95 group-data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
"z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
@position_class,
@class
])
Expand Down

0 comments on commit 1d25dc9

Please sign in to comment.