Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] date_time_picker_filter within a custom sidebar filter shows extra inputs #499

Open
Javierchik opened this issue Apr 22, 2024 · 0 comments
Labels

Comments

@Javierchik
Copy link

Hey team. I am rendering a sidebar filter like this way

text_node active_admin_filters_form_for(Individual.ransack(params[:q]), active_admin_config.filters, url: '/admin/aggregates/new')

And this is what I see
Screenshot 2024-04-22 at 09 38 13

This is what active_admin_config.filters returns:

[1] pry(#<Arbre::Context>)> active_admin_config.filters
=> {:cloudinary_asset_original_filename=>{:label=>"Filename", :as=>:string},
 :cloudinary_asset_title=>{:label=>"title", :as=>:string},
 :cloudinary_asset_description=>{:label=>"description", :as=>:string},
 :cloudinary_asset_format=>{:label=>"format", :as=>:select, :collection=>["doc", "docx", "pdf", "ppt", "pptx", "txt", "mp4", "mp3"]},
 :where_tags_contains=>{:as=>:string, :label=>"tag"},
 :where_common_terms_contains=>{:as=>:string, :label=>"common terms"},
 :created_at=>{:as=>:date_time_picker_filter}}

Appreciate any help.

@Javierchik Javierchik added the bug label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant