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

아티스트 목록 뷰에서 사이즈 변경으로 인한 undefined 오류 #46

Closed
stories2 opened this issue Jul 8, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stories2
Copy link
Collaborator

stories2 commented Jul 8, 2021

티켓팅 안내 기능의 페이지 로드시 페이지 가로크기 리사이징 방식으로 인해
특정 조건에 따라서 윈도우 사이즈 변경 이벤트를 아티스트 목록 초기화 작업시 발생시키면
스크린샷 2021-07-08 오후 2 55 04

위의 오류가 발생 될 수 있는 문제

@stories2 stories2 added the bug Something isn't working label Jul 8, 2021
@stories2 stories2 self-assigned this Jul 8, 2021
stories2 added a commit that referenced this issue Jul 8, 2021
@stories2
Copy link
Collaborator Author

stories2 commented Jul 8, 2021

스크린샷 2021-07-08 오후 2 56 58

윈도우 크기가 변경되는 이벤트 발생시에 responsiveBlockList 메소드를 호출하도록 해 놓았는데

스크린샷 2021-07-08 오후 2 57 28

내용으론 각 속성의 엘리먼트가 존재한다는 가정하에 style 속성을 참조하는 코드로 작성되어 있음
하지만 초기화 시 티켓팅 안내 기능에서 먼저 작업이 완료되어 기능 특성상 페이지 리사이징을 만들게 되면
아티스트 목록은 아직 초기화가 되어있지 않은데도 리사이징 이벤트를 호출시켜 오류를 발생시키는 것으로 보임

@stories2
Copy link
Collaborator Author

stories2 commented Jul 8, 2021

확실하게 하기 위해 ele 속성이 존재한다는 가정하에 짜여진 코드에 조건문을 걸어 undefined 검사를 진행하도록 조치

424b68d 참조

stories2 added a commit that referenced this issue Jul 8, 2021
@stories2 stories2 closed this as completed Jul 8, 2021
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

1 participant