RhoInc / safety-histogram

Histogram showing distribution of lab measures, vital signs and other measures related to safety in clinical trials.
MIT License
1 stars 1 forks source link

pagination bug in latest version of webcharts #49

Closed dschwentker closed 7 years ago

dschwentker commented 7 years ago

In test webcharts version 1.9.0-RC3, I noticed a pagination bug, where you can click on a bar in the chart with lots of records, page through the table for several pages, and then if you click on a bar with fewer records, it seems to retain the pagination, even if the new table does not have that many pages, so you end up with an empty table. It shows the correct number of records, and you can click a page or arrow button to be taken to a page with records on it, but the table should be properly refreshed when you click on a new bar.

Steps to recreate:

  1. render the chart
  2. click on one of the taller bars in the chart
  3. paginate through the table to at least page 5 or 6
  4. click on a much smaller bar in the chart

image

jwildfire commented 7 years ago

We should be able to manually set table.currentPage to 1 whenever we click a bar. Looking now ...

jwildfire commented 7 years ago

Updating webcharts to deal with this issue. no fix needed here.