Skip to content

Commit 4a639f2

Browse files
committed
fix(combobox): remove border and outline from ComboboxInputTrigger input
1 parent 9c824fb commit 4a639f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ruby_ui/combobox/combobox_input_trigger.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def view_template
1515
autocomplete: "off",
1616
autocorrect: "off",
1717
spellcheck: "false",
18-
class: "flex-1 bg-transparent outline-none placeholder:text-muted-foreground text-sm disabled:cursor-not-allowed",
18+
class: "flex-1 border-0 bg-transparent outline-none focus:ring-0 placeholder:text-muted-foreground text-sm disabled:cursor-not-allowed",
1919
data: {
2020
ruby_ui__combobox_target: "inputTrigger",
21-
action: "focus->ruby-ui--combobox#openPopover keyup->ruby-ui--combobox#filterItems input->ruby-ui--combobox#filterItems"
21+
action: "keyup->ruby-ui--combobox#filterItems input->ruby-ui--combobox#filterItems"
2222
}
2323
)
2424
chevron_icon
@@ -32,7 +32,8 @@ def default_attrs
3232
class: "flex h-9 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 aria-invalid:border-destructive",
3333
data: {
3434
ruby_ui__combobox_target: "trigger",
35-
placeholder: @placeholder
35+
placeholder: @placeholder,
36+
action: "click->ruby-ui--combobox#openPopover"
3637
},
3738
aria: {
3839
haspopup: "listbox",

0 commit comments

Comments
 (0)