Negative numbers on iOS keyboard

Just in case anyone is running into an issue where this solution works on the first page load, but then not on subsequent refreshes, solution here - Changing inputmode after page load only works once