p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Increase font size button can concatenate `20` => `202` instead of adding

Open lindapaiste opened this issue 3 years ago • 0 comments

The "Increase" and "Decrease" font size buttons can have strange behavior if they are clicked after typing in the input.

To reproduce, click on the input and type 20. Then, without hitting Enter, click the "Increase" button. You should see this: image

If the user hits Enter to submit the form then the "Increase" and "Decrease" buttons will work as expected.

lindapaiste avatar Aug 07 '22 20:08 lindapaiste