Open eomttt opened 2 years ago
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
@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.
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
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:
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):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.