Skip to content

[Ionic4-beta.6] Datetime restrictions based on maxDate do not update while modal is open #15452

Closed

Description

Bug Report

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.1 (C:\Users\Dani\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.6
   @angular-devkit/core       : 0.7.4
   @angular-devkit/schematics : 0.7.4
   @angular/cli               : 6.1.4
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

System:

   NodeJS : v8.10.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.2.0
   OS     : Windows 10

Describe the Bug
The fields in the selector do not update while the popup is open when a max value is set.
Example: max value is 15.09.2018 (dd.MM.yyyy), so only 1-15d in month 9, 1-9m in year 2018 should be able to be selected, while in other months all days, and in other years all months should be available for selection. Change the year to 2017, fields do not update and month is still only 1-9 available. Accept the date, reopen the modal and you can select all months.
Day is completely ignored there are always 31 days available for every month.

Steps to Reproduce
Steps to reproduce the behavior:

  1. create datetime with maxDate set.
  2. open modal
  3. change date around to a date where there should be more selectable options based on maxDate restriction.
  4. restriction did not update
  5. accept date
  6. reopen modal, restrictions did update

Expected Behavior
Restrictions update while selecting date.

Activity

  1. paulstelzer commented on Dec 4, 2018

    @paulstelzer
    Contributor

    Does this issue still exist in beta.17?

  2. added
    needs: reply
    on Dec 4, 2018
  3. added and removed
    needs: reply
    on Dec 4, 2018
  4. added
    package: core
    type: bug
    and removed on Dec 4, 2018
  5. gregor-srdic commented on Dec 5, 2018

    @gregor-srdic

    I am also experiencing this issue in 4.0.0-beta.17

  6. paulstelzer commented on Dec 5, 2018

    @paulstelzer
    Contributor

    Thanks for your response and confirming it. I already added it as bug, so it should fixed until the v4 release :)

  7. shomid commented on Jan 9, 2019

    @shomid

    I have also this issue in 4.0.0-rc-0

  8. liamdebeasi commented on Feb 12, 2019

    @liamdebeasi
    Contributor

    Hi there,

    Thanks for the issue! I’ve added this to issue #16630 to keep track of. We’re going to close out the individual issues and address all of the Datetime issues at once. We’re not forgetting about your issue, just trying to keep them all together.

    Thanks for using Ionic!

  9. ionitron-bot commented on Mar 14, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  10. locked and limited conversation to collaborators on Mar 14, 2019
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

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions