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 #2965 (1/N) - Fix redundant calls to onEditText() in markdown editor component #3541

Merged
merged 1 commit into from
Jun 27, 2016

Conversation

robertknight
Copy link
Member

@robertknight robertknight commented Jun 24, 2016

This is the first in a set of PRs to fix #2965 and #3380 which are ultimately caused by certain state for annotations being duplicated and getting out of sync.

This fixes an issue where onEditText() would be called unnecessarily
when the markdown editor lost focus.

Simplify the code by just listening for the 'input' event, which all our
target browsers support.

This fixes an issue where onEditText() would be called unnecessarily
when the markdown editor lost focus.

Simplify the code by just listening for the 'input' event, which all our
target browsers support.
@codecov-io
Copy link

Current coverage is 74.39%

Merging #3541 into master will increase coverage by 1.61%

@@             master      #3541   diff @@
==========================================
  Files           132        133     +1   
  Lines          4707       5210   +503   
  Methods           0          0          
  Messages          0          0          
  Branches        527        642   +115   
==========================================
+ Hits           3426       3876   +450   
- Misses         1213       1248    +35   
- Partials         68         86    +18   

Sunburst

Powered by Codecov. Last updated by ae59422...932bba1

@robertknight robertknight changed the title Fix redundant calls to onEditText() in markdown editor component Fix #2965 (1/N) - Fix redundant calls to onEditText() in markdown editor component Jun 24, 2016
@nickstenning
Copy link
Contributor

👍

For anyone else looking at this: http://caniuse.com/#feat=input-event

@nickstenning nickstenning merged commit 7ec5049 into master Jun 27, 2016
@nickstenning nickstenning deleted the fix-editor-input-callbacks branch June 27, 2016 12:47
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.

Annotation search does not find edits made in current session
3 participants