diff --git a/CHANGELOG.md b/CHANGELOG.md index 88060685403c1298aef100292b0e0407abd1e8a8..0208a5e623786b72dfb0d7539a32b94769b220b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - The Method Picker responds to change in option selection. - When a site has no IV data but does have discrete site visits, the code properly handles that and the IV hydrograph will now render. - HUCs not represented in the lookup files will not show in the Subbasin hydrologic unit row of the Location Metadata table. - +- Hydrograph data table pagination no longer jumps to top of page. +- ## [0.50.0](https://github.com/usgs/waterdataui/compare/waterdataui-0.49.0...waterdataui-0.50.0) - 2021-08-18 ### Changed - The NWIS site service and sifta service now use aiohttp and are called concurrently in the monitoring_location view. diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/index.js b/assets/src/scripts/monitoring-location/components/hydrograph/index.js index f522d727f255b8e9a57cd3f94f3f0f59bde74305..1cdafee9ca6f421b9f111da8f986a9b994b7340d 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.js @@ -150,7 +150,7 @@ export const attachToNode = function(store, legendControlsContainer.call(drawTimeSeriesLegend, store); if (!thisShowOnlyGraph) { - // Compensates for USWDS pagination jumping to top of page + // Compensates for list.js pagination jumping to top of page nodeElem.select('.graph-data') .on('click', function() { nodeElem.selectAll('#iv-data-table-container a.page').attr('href', '#/'); diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js index 4886918b69c19142c4288d51639f349613d29c96..18fbdd165ef993a2a4cc463f2ea29fde9f25f5d1 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js @@ -338,11 +338,6 @@ describe('monitoring-location/components/hydrograph module', () => { expect(select('#iv-hydrograph-data-table-container').size()).toBe(1); expect(select('#gw-hydrograph-data-table-container').size()).toBe(1); }); - - it('should stop pagination from jumping to top of page', () => { - expect(select('.wdfn-accordion').size()).toBe(1); - - }); }); describe('Tests for rendering once fetching is complete when showOnlyGraph is true', () => {