Skip to content

Commit

Permalink
Added a comment explaining why we need this option
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Oct 19, 2018
1 parent ee62dcd commit e5c8d21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Form/Type/DateTimePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'widget' => 'single_text',
// if true, the browser will display the native date picker widget
// however, this app uses a custom JavaScript widget, so it must be set to false
'html5' => false,
]);
}
Expand Down

0 comments on commit e5c8d21

Please sign in to comment.