Skip to content

TimePicker minHour, maxHour are throwing exception when hour is out of their range #1916

Closed

Description

@NickIliev

When we have set minHour or/and maxHour and the user picks a hour smaller/larger then the pre-set limitations we are throwing an exception.

For example:

<TimePicker hour="5" minute="30" minHour="3" maxHour="7" />

This will create a time picker with all possible hours
and will throw exception when hour is smaller then 3 and larger then 7

Error: Hour property value (02:00) is not valid. Min time: (03:00), max time: (07:59).

Activity

  1. added this to the 2.0.0 milestone on Apr 13, 2016
  2. self-assigned this
    on Apr 13, 2016
  3. added
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Apr 13, 2016
  4. niyazhussain commented on Jan 18, 2017

    @niyazhussain

    I am facing the same issue in IOS, please tag me once fixed.

  5. Macarthurval commented on Oct 18, 2017

    @Macarthurval

    Still the error in iOs when maxHour and maxMinute are defined, changing hour and falling out of the range by minutes gilt.

    Example:

    max: 09:00
    current: 08:30
    move a hour forward: 09:30

    It crash instead of autoadjust to 9:00 :

    Error: Hour property value (09:30) is not valid. Min time: (00:00), max time: (09:00).

  6. Dagrut commented on Jan 31, 2019

    @Dagrut

    Same error here...
    Is there a workaround? I tried setting the value myself with hour/minute or with v-model after a change event, but nothing works 😞

  7. lock commented on Jan 31, 2020

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked and limited conversation to collaborators on Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugos: androidready for testTSC needs to test this and confirm against live production apps and automated test suites

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions