digitalBush/jquery.maskedinput — Issue #66: Empty mask is submitted with form if enter is pressed inside a masked field
Author: ripvannwinkler
Created: 2012-01-03 18:52:09+00:00
State: open

Imagine I have a phone number field with a mask on it. If I tab out of the field and submit without entering a phone number, the field is submitted with an empty value as expected. However, if I tab into the field and press enter, thus submitting the form without entering a value but while the mask is present, the form on the server side receives the empty mask content instead of an empty value as expected. How can I prevent this?