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

selection-change event does not provide all specified callback parameters #762

Closed
sachinrekhi opened this issue Jun 21, 2016 · 0 comments
Closed

Comments

@sachinrekhi
Copy link
Contributor

The selection-change event only appears to be providing range and source parameters and not providing oldRange as specified in the documentation here: http://beta.quilljs.com/docs/api/#events

Steps for Reproduction

  • Visit beta.quilljs.com
  • Add the following in console:
quill.on('selection-change', function(range, oldRange, source) { console.log(range); console.log(oldRange); console.log(source)})
  • Click anywhere in the editor

Expected behavior:
Expect console to display range, oldRange, and source parameter values

Actual behavior:

  • oldRange parameter value is actually the source paramter value
  • And source variable in undefined
  • (Suggesting that oldRange is just missing)

Platforms:
Chrome 51 on Mac 10.11

Version:
Quill 1.0 Beta 6

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

No branches or pull requests

1 participant