You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toast-ui color-picker를 web components로 만들어서 사용할 때 아래와 같은 문제가 발생.
palette 영역 클릭 시, getTarget 함수가 e.target을 반환하는데, 이때 target이 palette 영역이 아닌 web component가 반환되어, click에 대한 이벤트핸들러에서 오류가 발생
(lotstar87/twc-color-picker#1)
The text was updated successfully, but these errors were encountered:
lotstar87
changed the title
Changed the getTarget function to return composedPath[0] to support web components
Change the getTarget function to return composedPath[0] to support web components
Aug 27, 2020
Version
2.3.2
Development Environment
MacOS 10.15.6
Chrome 84.0.4147.135
Current Behavior
toast-ui color-picker를 web components로 만들어서 사용할 때 아래와 같은 문제가 발생.
palette 영역 클릭 시, getTarget 함수가 e.target을 반환하는데, 이때 target이 palette 영역이 아닌 web component가 반환되어, click에 대한 이벤트핸들러에서 오류가 발생
(lotstar87/twc-color-picker#1)
Expected Behavior
getTarget 함수가 e.composedPath()[0]을 반환하도록 변경
The text was updated successfully, but these errors were encountered: