Skip to content
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.

Fix cursor after typing over a whitespace gap. #215

Merged
merged 1 commit into from
Apr 18, 2016

Conversation

jenanwise
Copy link
Contributor

r? @mduvall

Fixes #199

Example:

  1. Value: 4242| 000.
  2. Type 1
  3. Value: 4242 1|000.

Before this change, value would be 4242 |1000.

This is, as far as I can tell, untestable with jsdom. They have rudimentary
selectionStart support, but synthetic events are handled poorly. Tested
manually in browsers instead.

Example:

1. Value: `4242| 000`.
2. Type `1`
3. Value: `4242 1|000`.

Before this change, value would be `4242 |1000`.

This is, as far as I can tell, untestable with jsdom. They have rudimentary
`selectionStart` support, but synthetic events are handled poorly. Tested
manually in browsers instead.
@jamesreggio
Copy link
Contributor

👍

@mduvall
Copy link
Contributor

mduvall commented Apr 18, 2016

💯

@jenanwise jenanwise merged commit 42f862f into master Apr 18, 2016
@jenanwise jenanwise deleted the jenan-cursor-after-gap branch April 18, 2016 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants