This should have been done together with the other related updates in 35fa1f93bc (Reset wxSpinCtrl value to GetMin() if text string is invalid, 2021-04-23), but was forgotten there. See #19140.
35fa1f93bc