mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
Followup to e113eff6634c9b398b0541ea6a0d1626f6732dcc We previously sanitized input for integer site settings on the server side only, which was a bit confusing when users would enter e.g. 100.5 and end up with 1005, and not see this reflected in the UI. Now that we are using native number inputs for these settings, we can improve the experience a bit by not allowing `.` or `,` in the input, because it should be whole numbers only, and add a step size of 1. All other characters are already prevented in this native number input.