Drupal 8 Custom Composite Masked Input
If you want to get simple form elements to include webform element enhancements you have to 'initialize' the composite's sub-elements using \Drupal\webform\Element\WebformCompositeBase::initializeCompositeElements