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] Collection option for time zone input doesn't limit the selection #1851

Open
bogdan opened this issue Oct 5, 2024 · 0 comments
Open

Comments

@bogdan
Copy link

bogdan commented Oct 5, 2024

Environment

  • Ruby 3.2.2
  • Rails 7.0
  • Simple Form 5.3.1

Code sample

f.input :time_zone, as: :time_zone, 
  collection: ["London", "Berlin"].map { ActiveSupport::TimeZone[_1] }, 
  include_blank: false

Current behavior

Renders all time zones as options

Expected behavior

Renders only specified time zones selection.

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

No branches or pull requests

1 participant