tui.image-editor
tui.image-editor copied to clipboard
call `addText` method and revise immediately `space` not working
Describe the bug
when i use addText method.
textarea open and focusing but when i typing english or number and after typing space
focus out textarea
but korean is work very well (but when i typing korean and after click space twice, fire same)
example
abc(space)<- focus out
123(space)<- focus out
κ°λλ€(space)λΌλ§λ°μ¬<- work well
κ°λλ€(space)(space)<-focus out
and it also fire at first time when i call addText and delete placeholder and same typing above doesn't file only fire when call addText and immediately write. so i think it's problem with addText method
To Reproduce Steps to reproduce the behavior:
- Go to 'call addText method'
- Typing any text and type space after
- textarea focused out -> but when i double click textarea after focus out and revise work very well
Expected behavior Not focusing out
Screenshots https://user-images.githubusercontent.com/22593217/153546996-12e96507-f4e0-4a1f-94b1-f2eb3dff7f29.mov
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
i debug some case. when i click space textarea tag detached in body tag at first time
i forked repo and make new html for test my issue https://github.com/eomttt/tui.image-editor/commit/456921f7c4900fb1190b25c4aaa7794f9bdfa811
open dev serve and check please
https://user-images.githubusercontent.com/22593217/153568856-fe4eea90-261e-4d1b-bafa-8ed0337b9e74.mov
@eomttt Thank you for reporting the bug. The bug is not reproduced. Can you tell me how to reproduce it in detail?
@eomttt Thank you for reporting the bug. The bug is not reproduced. Can you tell me how to reproduce it in detail?
You can see my commit (https://github.com/eomttt/tui.image-editor/commit/456921f7c4900fb1190b25c4aaa7794f9bdfa811) and show example04-add-text.html file and produce this html in your dev server.
νκ΅λ§λ‘ νμλ©΄.... addText λ©μλ μ€ν ν, ν μ€νΈλ°μ€κ° μκΈ°λ©΄ κ·Έλ νκΈμ μ μΈν μμ΄λ μ«μλ₯Ό μ λ ₯νλ€κ° μ€νμ΄μ€λ₯Ό μ λ ₯νλ©΄ ν μ€νΈ λ°μ€μμ ν¬μ»€μ€κ° μμλ©λλ€. νκΈ μΈκ²½μ° μ°μμΌλ‘ μ€νμ΄μ€λ₯Ό μΉλ©΄ ν μ€νΈ λ°μ€μμ ν¬μ»€μ€κ° μμλ©λλ€.
μ‘°κΈ μ½λλ₯Ό μ°Ύμ보λ autofocus μΈ κ²½μ°μ events.TEXT_EDITING
μ΄λ²€νΈκ° λ°μ μλμ΄μ zoom.js
μμ _startHandModeWithSpaceBar
λ©μλμμ this.isTextEditing
μ΄ μμ§ false μ¬μ μ€νμ΄μ€μ this.startHandMode
λ©μλκ°λΆλ €μ ν¬μ»€μ€κ° μμ΄μ§λλ€.
rκ·Έλμ PR λ μ΄μ΄ λ΄€μ΅λλ€. (https://github.com/nhn/tui.image-editor/pull/711)
@eomttt I succeeded in reproducing it. Thank you for the information. I will comment on the PR.