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

fix(core): Return the window object as default instead of the boolean from the typeof comparison #3160

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

Domvel
Copy link
Contributor

@Domvel Domvel commented Sep 5, 2019

Return the window object as default instead of the boolean from the typeof comparison.
Otherwise the target event is invalid. Because it's a boolean, not an object. (like window).
Please see this issue for details. Fixes #2972 and all other related issues. This is a blocker bug. Please merge and release it as soon as possible. @danielsogl

@Domvel Domvel changed the title fix(core) Fixes #2972 fix(core) Return the window object as default instead of the boolean from the typeof comparsion. Sep 5, 2019
But is there a case where window does not exist? If ionic-native always runs in browsers enviroment (like Cordova / WebView) we could remove the `typeof` checks.
@Domvel Domvel changed the title fix(core) Return the window object as default instead of the boolean from the typeof comparsion. fix(core) Return the window object as default instead of the boolean from the typeof comparison. Sep 11, 2019
@Domvel Domvel changed the title fix(core) Return the window object as default instead of the boolean from the typeof comparison. fix(core) Return the window object as default instead of the boolean from the typeof comparison. (Blocker Bug) Sep 11, 2019
Copy link
Contributor

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good To Me

@jcesarmobile jcesarmobile changed the title fix(core) Return the window object as default instead of the boolean from the typeof comparison. (Blocker Bug) fix(core): Return the window object as default instead of the boolean from the typeof comparison Sep 12, 2019
@jcesarmobile jcesarmobile added the target: patch This PR is targeted for the next patch release label Sep 12, 2019
@danielsogl danielsogl self-assigned this Sep 13, 2019
@danielsogl danielsogl merged commit 8b3b2a4 into danielsogl:master Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@ionic-native/keyboard
3 participants