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
The title prop on EuiCard is causing the onClick method to trigger twice when the title is clicked. It appears that this only happens when a React Node is passed into title instead of a string.
Steps to Reproduce:
View the CodeSandbox link below and make sure the console is open
Click on the title text ('This is a title') and notice two console.log statements for each time the title is clicked
Click on the card body (not the title text) and notice that there's only one console.log statement for each time the body is clicked
The
titleprop onEuiCardis causing theonClickmethod to trigger twice when the title is clicked. It appears that this only happens when a React Node is passed intotitleinstead of a string.Steps to Reproduce:
console.logstatements for each time the title is clickedconsole.logstatement for each time the body is clickedCodeSandbox Link: https://codesandbox.io/s/card-onclick-demo-jue9fj?file=/demo.tsx
11C30291-17E8-4539-AE92-CFEBD89B6E09_2_0_a.mov