The server editor allows you to enter alphanumeric aka invalid port values. If you then try to save the editor, you'll get an error that tells you that the editor could not be saved because of invalid values.
The editor gets saved though - the editor gets clean even though the value is still present in the editor.
We can avoid this easily by disallowing alphanumeric values while typing.