Enable new post reactions menu가 활성화되어 있을 때 버그가 존재합니다. 왼쪽의 discourse-reactions-actions-x-left와 discourse-reactions-reaction-button이 동일한 컴포넌트를 공유하고 있기 때문입니다.
모바일 뷰에서 왼쪽 discourse-reactions-actions-x-left를 길게 누르면 의도치 않은 ReactionsPicker가 트리거되며, 콘솔에 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getBoundingClientRect') 오류와 반응하지 않는 피커 패널이 표시됩니다.
이 커밋에서는 이러한 문제를 방지하기 위해 이벤트를 .discourse-reactions-reaction-button 요소에 연결하도록 수정했습니다.
수정 전:
수정 후:
Meta에서의 모습:
비슷한 문제가 여기에도 있습니다. ref 추가: Ability to display all the likes/reactions on a post - #77 by Moin