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

Visible chars are now a parameter in onTyped #1

Merged
merged 1 commit into from Oct 31, 2015

Conversation

frostney
Copy link
Collaborator

I have been in the situation where token alone is not enough in the onTyped callback. This happens when there are multiple occurrences of the same token in the text that's going to be displayed.

With this pull request, the value of prevState.visibleChars is available as the second parameter in the callback, making it easier to make assumptions based on the token and the position.

ianbjorndilling added a commit that referenced this pull request Oct 31, 2015
Visible chars are now a parameter in onTyped
@ianbjorndilling ianbjorndilling merged commit c830319 into ianbjorndilling:master Oct 31, 2015
@ianbjorndilling
Copy link
Owner

I'm sorry it took me so long to get to this! Your suggestion has been merged.

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

2 participants