mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Virtual keyboard focus out issue upon keypress.

Open arjunexalture opened this issue 1 year ago • 5 comments

I am using mathlive virtual keyboard for touch devices. It works as expected in browser. When I use it in our app, what happens is after a keypress from virtual keyboard, data updates and then text editor getting focused out. Upon next keypress, the virtual keyboard disappears. Is there anything to prevent from this focus out situation.

arjunexalture avatar Jan 01 '24 05:01 arjunexalture

I got the same issue

https://github.com/arnog/mathlive/issues/2182

edward1127 avatar Jan 01 '24 11:01 edward1127

@edward1127 is it the same issue? I thought your issue was triggered when typing quickly? That doesn't seem to be the case here. Have you been able to find a resolution or workaround for your issue?

@arjunexalture could you provide more details? Can you build a reproducible test case that could be debugged? Are you using React, React Native or Angular?

arnog avatar Jan 01 '24 16:01 arnog

@arnog Yep, that's correct, but I think it might be related since it also loses focus, and it only happens in nextjs but not react. I'm still checking which line of the code might be the culprit. https://github.com/vercel/next.js/discussions/60076

edward1127 avatar Jan 01 '24 17:01 edward1127

@arnog I am using React and I am using sandbox mode inside iframe. In my case, it's not reproduceable in browser. It is happening in app version of my project only.

arjunexalture avatar Jan 02 '24 04:01 arjunexalture

@arjunexalture can you provide any additional information that could help narrow down this issue? Do you have some code you could share? Or a stack trace for when the blur event is handled?

arnog avatar Jan 07 '24 23:01 arnog