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

color picker의 slider 혹은 palette를 클릭할 때, slider-part를 찾지 못하는 문제 #1

Open
lotstar87 opened this issue Aug 25, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lotstar87
Copy link
Owner

현상

Palette 혹은 Slider에서 클릭을 발생시킬 때 (드래그는 잘 됨), slider-part를 찾지 못해 아래와 같은 에러가 발생

image

상세

tui.code-snippet/domEvent/getTarget.js의 getTarget 과정에서, e.target이 항상 web component를 반환하여 발생하는 문제
아래 코드와 같이 변경되면 해결 가능...

// tui.code-snippet/domEvent/getTarget.js

// from
function getTarget(e) {
  return e.target || e.srcElement; 
}

// to
function getTarget(e) {
  return e.composedPath()[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant