Visitar URL original
Default value on time picker component is ignored · Issue #4331 · uswds/uswds · GitHub
Skip to content

Default value on time picker component is ignored #4331

Closed

Description

@Swimburger

Describe the bug

When initializing a time picker with a default value, the default value is ignore.

Here's a sample of the issue: https://jsbin.com/qojusuj/edit?html,output

Steps to reproduce the bug

  1. Use time picker HTML
  2. Update the value attribute to '12:00pm'
  3. Verify the time picker is empty after initialization

Expected behavior

I expect the matching value to be pre-selected if found in the combo box of times.

System setup

  • USWDS version: 2.12.1
  • Device: Tested on desktop, but pretty sure it's on all devices
  • Operating system: Tested on Windows, but pretty sure it's on all devices
  • Browser and version: Edge 93.0.961.52

Additional context

This is not an urgent issue for us.

Activity

  1. added
    Needs: ConfirmationReported behavior needs validation. Remove after recording reproduction or investigation results.
    Package: Time PickerWork affecting Time Picker. Apply only when this area helps route or find the issue.
    and removed on May 6, 2022
  2. moved this from Ready to Schedule to Scheduled in USWDS Core Project Dataon May 8, 2022
  3. modified the milestone: uswds 3.1.0 on May 8, 2022
  4. thisisdano commented on May 8, 2022

    @thisisdano
    Contributor

    @mejiaj Can you check if this was resolved?

  5. moved this from Scheduled to Review in USWDS Core Project Dataon May 8, 2022
  6. mejiaj commented on May 9, 2022

    @mejiaj
    Contributor

    Resolved in #4488

  7. Repository owner moved this from Review to Done in USWDS Core Project Dataon May 9, 2022
  8. removed
    Needs: ConfirmationReported behavior needs validation. Remove after recording reproduction or investigation results.
    on May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Context: JavaScriptIssue is in JavaScriptPackage: Time PickerWork affecting Time Picker. Apply only when this area helps route or find the issue.

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions