Skip to content

[Bug] Collection option for time zone input doesn't limit the selection #1851

Open
@bogdan

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions