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

Intermittent datepicker issues with filters #81

Open
x9sim9 opened this issue Nov 20, 2022 · 1 comment
Open

Intermittent datepicker issues with filters #81

x9sim9 opened this issue Nov 20, 2022 · 1 comment

Comments

@x9sim9
Copy link

x9sim9 commented Nov 20, 2022

When using the datepicker with activeadmin filter, the datepicker when clicking on the input field seems to be very buggy, sometimes showing the datepicker other times not triggering at all.

If you click on a filter field, somewhere else on the page and click back on the field a few times it replicates the issue. Sometimes the page loads and it is not shown at all.

No java-script console error messages are being shown.

ruby 2.7.5p203
Rails 6.1.4.4
activeadmin 2.13.1
active_admin_datetimepicker 1.0.0

intializer

# This if for the front-end JavaScript side
ActiveAdminDatetimepicker::Base.default_datetime_picker_options = {
  format: 'd/m/Y H:i',
  defaultTime: proc { Time.current.strftime('%H:00') },
  defaultDate: proc { Time.current.strftime("%d/%m/%Y 00:00") }
}
# This if for the Ruby backend
ActiveAdminDatetimepicker::Base.format = "%d/%m/%Y %H:%M"

activeadmin filter

filter :appointment_date, as: :date_time_range

sass variables

$filter-field-seperator-width:100;
$side-by-side-filter-input-width:100;
@workgena
Copy link
Contributor

Can not reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants