Closed BenJenkinson closed 1 month ago
Hi @BenJenkinson and good catch! Looks like it's missing an stopPropagation()
for the click event. I will schedule a fix for this in the next release.
If you are in a hurry, I highly recommend to check out an updated version of the BarList here. We just released it over at Tremor Raw, a copy & paste library for React components.
:tada: This issue has been resolved in version 3.15.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 3.16.0-beta.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Tremor Version
3.14.0
Link to minimal reproduction
https://storybook.tremor.so/?path=/story/visualizations-vis-barlist--with-on-value-change
Steps to reproduce
This can actually be reproduced in the storybook example for the
BarList
onValueChange
prophttps://storybook.tremor.so/?path=/story/visualizations-vis-barlist--with-on-value-change
alert()
dialogsWhat is expected?
Clicking any part of the bar (icon, text, or coloured bar area) fires the
onValueChange
callback onceWhat is actually happening?
Clicking the "name" on a bar fires the
onValueChange
callback twice.What browsers are you seeing the problem on?
Chrome
Any additional comments?
<div>
<p>/<a>
<div>