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

Fixes testing of multiple pikaday inputs #230

Merged
1 commit merged into from
Aug 29, 2019
Merged

Fixes testing of multiple pikaday inputs #230

1 commit merged into from
Aug 29, 2019

Conversation

john-griffin
Copy link
Contributor

The removal of jquery #220 changed the test selectors so they no longer checked for visibility. So when selecting a date from the second or greater pikaday input on a page it would not fill out the correct inputs. This has been fixed by returning the first visible element rather than the first element in the dom. Checking offsetParent appears to be the best way of doing this.

I double checked and the test included here was passing in v2.3.1.

The removal of jquery changed the test selectors so they no longer checked for visibility. So when selecting a date from the second or greater pikaday input on a page it would not fill out the correct inputs. This has been fixed by returning the first visible element rather than the first element in the dom.
@ghost ghost added the internal maintenance that comes with software label Aug 29, 2019
@ghost
Copy link

ghost commented Aug 29, 2019

Thank you for the contribution @john-griffin !

@ghost ghost merged commit 6d37183 into adopted-ember-addons:master Aug 29, 2019
@lindyhopchris
Copy link

Any chance we could get a bug fix release for this? It's preventing us upgrading at the moment as all our tests fail as a result!

@ghost ghost added the bug label Sep 9, 2019
@ghost
Copy link

ghost commented Sep 9, 2019

@lindyhopchris I can cut one first thing tomorrow if no one else can before then.
@knownasilya or @Alonski are either of you able to before then? yarn release from within the repo should do it.

@ghost
Copy link

ghost commented Sep 10, 2019

@lindyhopchris Released as 2.4.1.

@lindyhopchris
Copy link

@efx thanks!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug internal maintenance that comes with software
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants