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

[#1003][3.0] Window > ESC 기능 버그 수정 #1007

Merged
merged 4 commits into from
Jan 5, 2022
Merged

Conversation

sej-dev
Copy link
Collaborator

@sej-dev sej-dev commented Jan 4, 2022

[3.0] EVUI > Window ESC 기능 버그 수정

#996
Window에 Escape key 누르면 닫히는 기능 추가와 관련하여 버그 수정

[ 버그 상황 ]
v-for로 Draggable Window를 여러 개 열었을 때 가장 상단의 Window만 닫히고 나머지 Window는 닫히지 않음

[ 보완 내역 ]
Window가 열리고 닫히는 경우의 수를 lifecycle hook과 관련하여 세분화하여 개선

################
- watch를 통해 Window의 열림/닫힘 관리했던 코드 -> 라이프사이클 훅 사용하도록 변경
################
- Window esc-close 관련하여 문서에 예시 코드 추가
################
- onUpdated, onBeforeUpdate -> watch로 이동
- === false -> !
################
- 간헐적으로 removeEventListener가 되지 않아 keydown 이벤트리스너가 중복 등록되는 문제 발생하여 관련 코드 제거
@kdeun1 kdeun1 merged commit 4f04443 into 3.0 Jan 5, 2022
@kdeun1 kdeun1 deleted the 1003_window_esc_bug branch January 5, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants