Skip to content

Commit 09e718a

Browse files
fix: datepicker not opening (#244)
1 parent 40e7938 commit 09e718a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/docs/date_picker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def view_template
1212
render Docs::VisualCodeExample.new(title: "Single Date", context: self) do
1313
<<~RUBY
1414
div(class: 'space-y-4 w-[260px]') do
15-
Popover(options: { trigger: 'focusin' }) do
15+
Popover(options: { trigger: 'click' }) do
1616
PopoverTrigger(class: 'w-full') do
1717
div(class: 'grid w-full max-w-sm items-center gap-1.5') do
1818
label(for: "date") { "Select a date" }
19-
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'input')
19+
Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'ruby-ui--calendar-input')
2020
end
2121
end
2222
PopoverContent do

0 commit comments

Comments
 (0)