Skip to content

Conversation

jajugoguma
Copy link
Contributor

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

  • Fix problems that touched element below of datePicker together in smartphone

As-Is
ezgif com-gif-maker (13)

To-Be
ezgif com-gif-maker (14)


Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

Copy link

@adhrinae adhrinae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료합니다.
직접 테스트해보지 못해서 그런데 굳이 새로운 이벤트 리스너를 추가하지 않고도 문제가 해결될 수 있을거같아서 확인 부탁드려요.

* @private
*/
_onTouchStartHandler: function(ev) {
ev.preventDefault();
Copy link

@adhrinae adhrinae Jul 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 별도의 이벤트 추가/제거를 아예 빼버리고 _onClickHandler 최상단에 ev.preventDefault() 를 호출하는 방식으로는 안되던가요? 굳이 불필요한 리스너를 추가하는 느낌이 드네요.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 방법 정상 동작하는 것 확인해서 알려주신 방법으로 변경했습니다.

터치 이벤트의 동작에 대해 찾아서 한 번 정리해 보도록 하겠습니다.

Copy link

@js87zz js87zz Jul 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

터치 관련 이벤트가 onClick보다 먼저 발생하는 걸로 알고 있어서 동작은 할텐데요. 저도 불필요한 이벤트 핸들러를 추가한 느낌이네요.
근데 PR 설명만 봤을때.. 팝업과 전혀 별개의 요소로 보이는데 클릭이 되는게 좀 이상하네요..근본적으로 이벤트가 어느 범위까지 걸려서 작동하는지 확인하고 수정해야 명확할 것 같습니다~!
image

Copy link
Contributor

@lja1018 lja1018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰완료합니다.

Copy link

@jwlee1108 jwlee1108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료입니다.

@jajugoguma jajugoguma merged commit 7e2463c into master Jul 6, 2021
@jajugoguma jajugoguma deleted the fix/below-element-touch-in-smartphone branch July 6, 2021 04:39
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.

5 participants