mathquill / mathquill

Easily type math in your webapp

Home Page:http://mathquill.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changes in Mathquill Text box does not reflect until we press backspace aur right arrowkey + space

sharmatapan opened this issue · comments

I have created a math editor using mathquill where I have give a button to enter the text which inserts \text{T} latex to input box and mathquill reflects a T with a border:
1
Now to edit that text, use left key and enter the box and make changes but you will those changes are not reflected in the input field since the MQ.mathfield edit handler did not run
2
And you will see only field getting updated when you press backspace aur right arrowkey + space
3

@sharmatapan are you using mathquill from one of the releases or a build of the master branch? I think this might have been addressed as I was seeing a similar issue in my use case of mathquill and @laughinghan made some fixes for text inputs in this changeset - #895

Hello @jaltekruse, yup it seems the same issue. I tried the latest build from https://www.npmjs.com/package/mathquill but issue persist. Can you please help

Hello @jaltekruse , I created a build from master and tried using it but still see the same issue.

@jaltekruse , I am using .latex() method in edit handler to get the updated latex but until I click backspace or right arrowkey + space, update in text are not reflected in my state, infact edit handler is not run at all.