RunestoneComponents icon indicating copy to clipboard operation
RunestoneComponents copied to clipboard

Webpage duplicates slider when pressing save/load history in quick succession

Open Jazzyforcefield opened this issue 5 years ago • 1 comments

What Course are you in CSCI 4131

What Page were you on https://runestone.academy/runestone/books/published/webfundamentals/Javascript/asyncJavascript.html What is your username ungxx028

Describe the bug Upon reading that the page makes use of Promise.all and disables the save button when history is loading, I decided to test it out and was still able to press the button and produce many sliders.

Traceback N/A

Additional context I was also able to reproduce this by clicking the history button fast and by clicking the save button fast. I am guessing that it does that when either of the buttons are clicked in rapid succession, for example you could click two of one, or both buttons in quick succession.

Screenshot from 2019-10-24 16-51-06

Jazzyforcefield avatar Oct 24 '19 21:10 Jazzyforcefield

First, Congratulations! You are one wicked fast clicker.

Second, you got me! I don't think you could recreate this same bug for a python program, but I do see the problem for Javascript and html (I don't use Promise.all for those cases 😢 ) Thanks for pointing this out!

bnmnetp avatar Oct 24 '19 22:10 bnmnetp