elseif (strpos($class, 'crm-form-contact-reference') !== FALSE) {
self::preprocessContactReference($element);
}
+ // Hack to support number fields
+ elseif (strpos($class, 'crm-form-number') !== FALSE) {
+ $element->setAttribute('type', 'number');
+ }
if ($required) {
$class .= ' required';