Skip to content

Commit

Permalink
fix: combobox behaviour issues [MDS-1412] (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffcabbar authored Nov 25, 2024
1 parent 6dd25af commit 1d92dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/moon/design/dropdown/options.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule Moon.Design.Dropdown.Options do
<div
class={merge([
"flex flex-col absolute z-[99]",
"p-1 rounded-moon-s-md box-border bg-goku shadow-moon-lg overflow-hidden focus:outline-none",
"p-1 rounded-moon-s-md box-border bg-goku shadow-moon-lg overflow-auto focus:outline-none",
(@position && position_class(@position)) || "w-full top-full my-2",
@is_open && "max-h-96 opacity-100 scale-100",
!@is_open && "max-h-0 opacity-0 scale-95",
Expand Down
2 changes: 1 addition & 1 deletion lib/moon/design/form/combobox.ex
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ defmodule Moon.Design.Form.Combobox do
{=@size}
hidden_input={false}
is_multiple
checkbox_label_class="relative flex items-center gap-2 text-moon-16 w-full h-full [&>span]:mt-3"
checkbox_label_class="relative flex items-center gap-2 text-moon-16 w-full h-full [&>span]:relative [&>input]:absolute"
>
<div class="w-full text-start pt-2"><#slot {@option, option: option}>{option[:key]}</#slot></div>
</Checkbox>
Expand Down

0 comments on commit 1d92dc4

Please sign in to comment.