diff --git a/webform.module b/webform.module index 12e8b11..6ff3c85 100644 --- a/webform.module +++ b/webform.module @@ -2687,7 +2687,7 @@ function theme_webform_element($variables) { $type = 'display'; } else { - $type = (isset($element['#type']) && !in_array($element['#type'], array('markup', 'textfield'))) ? $element['#type'] : $element['#webform_component']['type']; + $type = (isset($element['#type']) && !in_array($element['#type'], array('markup', 'textfield', 'webform_email', 'webform_number'))) ? $element['#type'] : $element['#webform_component']['type']; } // Convert the parents array into a string, excluding the "submitted" wrapper.