Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: Page Attributes: Order field does not allow negative numbers #9803
Besides allowing the input of negative numbers we also applied some improvements:
To correctly allow the input of negative number where temporarily on the input we may have only the string '-' which is not a valid number and should not be stored as the page order, I felt the need to use the state as a temporary storage for the input.
How has this been tested?
I checked the UI is identical to the previous version (the only difference are the arrows the browser provides for number inputs).