diff --git a/app/views/docs/calendar_view.rb b/app/views/docs/calendar_view.rb index dc67513..a422c37 100644 --- a/app/views/docs/calendar_view.rb +++ b/app/views/docs/calendar_view.rb @@ -10,7 +10,7 @@ def view_template render Docs::VisualCodeExample.new(title: "Connect to input", context: self) do <<~RUBY div(class: 'space-y-4') do - Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'input') + Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'date', data_controller: 'rbui--calendar-input') Calendar(input_id: '#date', class: 'rounded-md border shadow') end RUBY @@ -19,7 +19,7 @@ def view_template render Docs::VisualCodeExample.new(title: "Format date", description: "Format dates with date-fns", context: self) do <<~RUBY div(class: 'space-y-4') do - Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'formatted-date', data_controller: 'input') + Input(type: 'string', placeholder: "Select a date", class: 'rounded-md border shadow', id: 'formatted-date', data_controller: 'rbui--calendar-input') Calendar(input_id: '#formatted-date', date_format: 'PPPP', class: 'rounded-md border shadow') end RUBY