ramp4-pcar4 / cesi_testing_party_240709

A private repo for temporarily hosting issues for a Testing Party
0 stars 0 forks source link

Pressing `Historic` button and then `Current` quickly causes buttons to stay disabled #7

Open RyanCoulsonCA opened 1 month ago

RyanCoulsonCA commented 1 month ago

Describe the bug If you click the Historic button and then press the Current button quickly before the layer can load, the layer gets duplicated in the legend (one copy never loads), and the Update map, Clear map, Historic, and Share map buttons get stuck disabled.

To Reproduce Steps to reproduce the behavior (TIP: Provide a direct URL using the "Share" button above the map):

  1. Go to https://indicators-map.dev.ec.gc.ca/App/CESI_ICDE?GOCTemplateCulture=en-CA
  2. Click on the Historic button.
  3. Before the layers can load, press the Current button.
  4. Notice that the layer gets doubled up in the legend and the buttons never get re-enabled.

Expected behavior The layer shouldn't get duplicated and the buttons shouldn't get stuck disabled.

Environment Browser: Chrome Version 126.0.6478.127

Screenshots cesi-issue2

dan-bowerman commented 1 month ago

Having trouble reproducing this one. On desktop or mobile.

yileifeng commented 1 month ago

Reproduced on Edge

RyanCoulsonCA commented 1 month ago

I've been able to reproduce it on Chrome and Firefox but not Edge.