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

v4 Date Picker (allow current year) and fixes Picker to allow selecting index 0 #14809

Closed
wants to merge 3 commits into from
Closed

v4 Date Picker (allow current year) and fixes Picker to allow selecting index 0 #14809

wants to merge 3 commits into from

Conversation

sean-perkins
Copy link
Contributor

@sean-perkins sean-perkins commented Jul 20, 2018

Short description of what this resolves:

This fixes the picker to allow selecting the first index of the column options. The existing check is an if check on a number, which is always going to return false when index is 0.

This also fixes the max year check for generating the picker items for the current year.

Ionic Version: 4.0

Fixes: #14609 #14563 #14234

@sean-perkins
Copy link
Contributor Author

The picker already has an open PR for this problem: #14479. I'd propose type checking against value comparisons.

@brandyscarney brandyscarney added the package: core @ionic/core package label Jul 23, 2018
@jordanpurinton
Copy link
Contributor

Pleeeeeease merge this in

@brandyscarney
Copy link
Member

Thank you for the PR! The fix for being able to select the first index was added in this commit: d19061c

And I merged your fix for the current year here: f30ae88

This will be in the 4.0.0-beta.6 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants