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

selectTextChange monitor event exception! TypeError: textarea is undefined #206

Closed
Frenchix opened this issue Feb 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Frenchix
Copy link

Frenchix commented Feb 1, 2023

Hola!

I have this error that spams the console when I type text in the editor so there is a big slowdown after a while (Firefox last version) :

IselectTextChange monitor event exception! TypeError: textarea is undefined
getSelectionText md-editor-v3.es.js:502
callback md-editor-v3.es.js:6011
emit md-editor-v3.es.js:323
emit md-editor-v3.es.js:321
keyDownHandler md-editor-v3.es.js:591
useKeyBoard md-editor-v3.es.js:778
createHook runtime-core.esm-bundler.js:2739
callWithErrorHandling runtime-core.esm-bundler.js:157
callWithAsyncErrorHandling runtime-core.esm-bundler.js:166
__weh runtime-core.esm-bundler.js:2713
flushPostFlushCbs runtime-core.esm-bundler.js:343
flushJobs runtime-core.esm-bundler.js:397
promise callback*queueFlush runtime-core.esm-bundler.js:282
queueJob runtime-core.esm-bundler.js:276
effect runtime-core.esm-bundler.js:5743
triggerEffect reactivity.esm-bundler.js:397
triggerEffects reactivity.esm-bundler.js:387
triggerRefValue reactivity.esm-bundler.js:1003
set value reactivity.esm-bundler.js:1048
modifyFlashcards Flashcards.vue:43
onModifyFlashcards Flashcards.vue:66
callWithErrorHandling runtime-core.esm-bundler.js:157
callWithAsyncErrorHandling runtime-core.esm-bundler.js:166
emit$1 runtime-core.esm-bundler.js:714
0 Card.vue:22
callWithErrorHandling runtime-core.esm-bundler.js:157
callWithAsyncErrorHandling runtime-core.esm-bundler.js:166
invoker runtime-dom.esm-bundler.js:345
addEventListener runtime-dom.esm-bundler.js:279
patchEvent runtime-dom.esm-bundler.js:297
patchProp runtime-dom.esm-bundler.js:376
mountElement runtime-core.esm-bundler.js:5204
processElement runtime-core.esm-bundler.js:5178
patch runtime-core.esm-bundler.js:5098
mountChildren runtime-core.esm-bundler.js:5285
mountElement runtime-core.esm-bundler.js:5195
processElement runtime-core.esm-bundler.js:5178
patch runtime-core.esm-bundler.js:5098
mountChildren runtime-core.esm-bundler.js:5285
mountElement runtime-core.esm-bundler.js:5195
processElement runtime-core.esm-bundler.js:5178
patch runtime-core.esm-bundler.js:5098
mountChildren runtime-core.esm-bundler.js:5285
mountElement runtime-core.esm-bundler.js:5195
processElement runtime-core.esm-bundler.js:5178
patch runtime-core.esm-bundler.js:5098
mountChildren runtime-core.esm-bundler.js:5285
mountElement runtime-core.esm-bundler.js:5195
processElement runtime-core.esm-bundler.js:5178
patch runtime-core.esm-bundler.js:5098
componentUpdateFn runtime-core.esm-bundler.js:5638
run reactivity.esm-bundler.js:187
update runtime-core.esm-bundler.js:5745
setupRenderEffect runtime-core.esm-bundler.js:5759
mountComponent runtime-core.esm-bundler.js:5541
processComponent runtime-core.esm-bundler.js:5499
patch runtime-core.esm-bundler.js:5101
mountChildren runtime-core.esm-bundler.js:5285
md-editor-v3.es.js:325:18

however no problem on Chrome navigator

@imzbf
Copy link
Owner

imzbf commented Feb 2, 2023

I can't reproduce this bug. But tried to fix it and published 2.7.3-beta.0 just now.

I need your help to have a test.

Install beta version:

npm i md-editor-v3@beta

@Frenchix
Copy link
Author

Frenchix commented Feb 2, 2023

It solve the problem. Thanks :)

@imzbf imzbf added the bug Something isn't working label Feb 6, 2023
@imzbf imzbf closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants