Skip to content

fix(picker): Invalid Dates Bug - make ionChange event fire on first picker column change - #13529

Closed
olivercodes wants to merge 236 commits into
ionic-team:masterfrom
olivercodes:master
Closed

olivercodes wants to merge 236 commits into
ionic-team:masterfrom
olivercodes:master

Conversation

@olivercodes

@olivercodes olivercodes commented Nov 28, 2017 •

Copy link
Copy Markdown
Contributor

Short description of what this resolves:

This fix resolves the Invalid Dates issue in ion-datetime. Currently, it is possible to select invalid dates, because the day column does not update on the first picker change (for example, open the picker, select January 31st, then move Month February).

Full credit for this fix goes to @eisene, you can see his commit here:
https://github.com/eisene/ionic/commit/4aa494da1b3b082646c0a98ec1f69c823c126eb5

Changes proposed in this pull request:

make ion-change fire on first change of picker column

Ionic Version: 1.x / 2.x / 3.x
3.x

Fixes: #
#13287
#12533
#12319
#13430

brandyscarney and others added 30 commits June 12, 2017 13:51
fixes #9699
fixes #11484
fixes #11389
fixes #11325
fixes #11291
fixes #10828
fixes #11291
fixes #10393
fixes #10257
fixes #9434
fixes #8933
fixes #7178
fixes #7047
fixes #10552
fixes #10393
fixes #10183
fixes #10187
fixes #10852
fixes #11578
When `Tabs` are nested within each other, the highlight can get
misaligned. This prevents that by ensuring the affected
`.tab-highlight` is a direct child of the targeted `Tabs`.
…tabs

* wip

* wip

* progress

* wippy skippy

* getting there

* all tests passing except goBack

* unit tests pass again boi

* goBack tests pass

* great success

* the good stuff
@olivercodes olivercodes changed the title (fix): make ionChange event fire on first change (fix): make ionChange event fire on first picker column change Nov 28, 2017
@dylanvdmerwe

Copy link
Copy Markdown
Contributor

Would this also resolve this issue? #11919

@olivercodes

Copy link
Copy Markdown
Contributor Author

@dylanvdmerwe I think it would actually. I'll test it later today.

@olivercodes olivercodes changed the title (fix): make ionChange event fire on first picker column change (fix): Invalid Dates Bug - make ionChange event fire on first picker column change Dec 12, 2017
@olivercodes olivercodes changed the title (fix): Invalid Dates Bug - make ionChange event fire on first picker column change fix(picker): Invalid Dates Bug - make ionChange event fire on first picker column change Dec 12, 2017
@thisIsChetan

Copy link
Copy Markdown

How can i use this fix in my project now? Or do I need to wait till this pull request gets merged in master?

@olivercodes

olivercodes commented Dec 14, 2017 •

Copy link
Copy Markdown
Contributor Author

@thisIsChetan You would have to clone my fork (or clone Ionic apply the fix), and build+install the local version to your node_modules.

@thisIsChetan

Copy link
Copy Markdown

@Devnetics Thanks for your quick response! I guess local installation is not a solution for me as I have to maintain my application code on Github repo and then automate the build via Jenkins. Is there a way that I could install your fork of ionic via terminal using npm install path/to/your/ fork?

@olivercodes

olivercodes commented Dec 22, 2017 •

Copy link
Copy Markdown
Contributor Author

@thisIsChetan, sorry for the slow response, good ole holidays.

Yes you could do that, see npm link docs for details. https://docs.npmjs.com/cli/link. If you need more help setting it up just let me know.

@Ionitron

Copy link
Copy Markdown
Collaborator

Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated master to reflect this. This significant change has caused this pull request to break. While we really appreciate the time and effort you put into creating this, we are not able to merge it because of the newly introduced conflicts. We are extremely sorry about this. We will not be merging any more features in to v3. If this is a feature and you have the time, please resubmit this PR against the master branch. If this is a critical security issue in v3, we would greatly appreciate it if you would resubmit the PR against the new v3 branch. Thanks so much for your time!

@Ionitron Ionitron closed this Mar 12, 2018
@kayasky

kayasky commented Apr 14, 2018 •

Copy link
Copy Markdown

@olivercodes since this was closed, I recreated the PR with your fix #14329 which is compatible with v4

@olivercodes

Copy link
Copy Markdown
Contributor Author

@satbirjhuti Thanks! But, unfortunately, it won't work with just this change anymore (note the commented code below your changes). I'm working with @brandyscarney on a full fix, PR should be soon.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.