scratchfoundation/scratch-blocks

Some imputs accept negatives when they shouldn't

Opened this issue · 0 comments

Expected Behavior

On all inputs that expecting a positive integer the negative symbol shouldn't be able to be typed or appear in the touch numberpad.

Actual Behavior

On some inputs expecting a positive integer (e.g. item () of ()) the negative symbol is able to be typed and appears in the touch numberpad.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open any project on a touch screen
  2. Drag out the item () of () block
  3. Click on the number input
  4. Notice the negative button appears, negative numbers can also be typed.

System Details

Ubuntu 22.10, Firefox 107

Screenshots

image