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

Correction on blur event handler on iOS #46

Merged
merged 4 commits into from
Jul 28, 2017
Merged

Correction on blur event handler on iOS #46

merged 4 commits into from
Jul 28, 2017

Conversation

joao-alberto
Copy link
Contributor

Removing onBlur handler and reset function

João Alberto added 3 commits July 28, 2017 01:31
- Removing onBlur handler and reset function
@codecov-io
Copy link

codecov-io commented Jul 28, 2017

Codecov Report

Merging #46 into master will decrease coverage by 0.2%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   18.55%   18.34%   -0.21%     
==========================================
  Files           8        8              
  Lines         221      218       -3     
  Branches       46       45       -1     
==========================================
- Hits           41       40       -1     
+ Misses        140      139       -1     
+ Partials       40       39       -1
Impacted Files Coverage Δ
src/input.js 33.33% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 008129d...c827ec0. Read the comment docs.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Great! Thanks!

@kentcdodds kentcdodds merged commit 2e7f2c3 into downshift-js:master Jul 28, 2017
this.autocomplete.reset()
}
}

reset = () => {
moveCursorToTheEnd(this._inputNode)
Copy link
Contributor

@dashed dashed Jul 28, 2017

Choose a reason for hiding this comment

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

@psicotropicos I think this was also supposed to be removed.

I tried this PR in a project and was unable to unfocus in Safari.

Copy link
Member

Choose a reason for hiding this comment

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

Hah, yeah, maybe we should remove this call (and the method itself from utils because it's not used elsewhere).

Would you like to make that change @dashed?

Copy link
Contributor

Choose a reason for hiding this comment

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

PR @ #50

@dashed dashed mentioned this pull request Jul 28, 2017
kentcdodds pushed a commit that referenced this pull request Jul 28, 2017
* Fixes #32

* remove moveCursorToTheEnd

* remove calls to input.reset()

* remove moveCursorToTheEnd ref
@joao-alberto joao-alberto deleted the blur-ios branch July 28, 2017 23:45
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.

None yet

4 participants