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

Undefined errors during selection #103

Closed
1 task done
ghost opened this issue Aug 15, 2018 · 0 comments
Closed
1 task done

Undefined errors during selection #103

ghost opened this issue Aug 15, 2018 · 0 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 15, 2018

Prerequisites

  • Did you check the issue tracker to see if this issue has already been reported?

For more information, see the CONTRIBUTING guide.

Description

I'm incorporating MathLive and have run into a reproducible issue where I get a bunch of undefined errors. My input box has a few helpful keys to insert characters which might be contributing but I can't tell. The output LaTeX of the input box at the time is \left({\frac {5}{3}}\right)^4.

Steps to Reproduce

I installed MathLive via NPM. I import the mathlive JS file using a Webpack build and manually copied the CSS and fonts into our project.

In my input box I manually typed "5", "/", "3", then selected everything and pressed a button in our UI that runs perform(['insert', '\\left({#0}\\right)', { focus: true, feedback: true }]) to wrap parenthesis around the selection. After that I press another UI button that runs perform(['insert', '^{#?}', { focus: true, feedback: true }]) to add an exponent placeholder (which I fill in with the 4).

I then started to click around in the input box, selecting and deselecting things somewhat rapidly (mostly as an idle action while I was thinking) and the errors started to appear.

Actual behavior

I get a lot of errors and the input box no longer responds to input.

 [Show/hide message details.] TypeError: e is undefined[Learn More]
mathlive.js:1
../../node_modules/mathlive/dist/mathlive.js/</</s</k.prototype._pathFromPoint/n<
mathlive.js:1
<anonymous> self-hosted:988:17 ../../node_modules/mathlive/dist/mathlive.js/</</r</s.prototype.filter
mathlive.js:1
../../node_modules/mathlive/dist/mathlive.js/</</s</k.prototype._pathFromPoint
mathlive.js:1
i
mathlive.js:1
[Show/hide message details.] TypeError: this.mathlist.anchor(...) is undefined[Learn More] mathlive.js:1
../../node_modules/mathlive/dist/mathlive.js/</</s</k.prototype._render
mathlive.js:1
../../node_modules/mathlive/dist/mathlive.js/</</s</k.prototype._onFocus
mathlive.js:1
<anonymous> self-hosted:984:17 u
mathlive.js:1
../../node_modules/mathlive/dist/mathlive.js/</</s</k.prototype._onPointerDown
mathlive.js:1
<anonymous> self-hosted:986:17 

Expected Behavior

I would expect no errors.

Environment

Operating System Windows 10 Pro

Browser Firefox Developer Edition

URL N/A

@arnog arnog self-assigned this Aug 18, 2018
@arnog arnog closed this as completed in 8924b1c Jan 18, 2019
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