Created a range element. Tried to set min:1 and max:20

Form save causes error:

Range: the value may be no greater than 20.

Whatever value you set for max becomes the message in the form error. The max field is also not highlighted.