Skip to content

Commit e5c8d21

Browse files
committed
Added a comment explaining why we need this option
1 parent ee62dcd commit e5c8d21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Form/Type/DateTimePickerType.php

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function configureOptions(OptionsResolver $resolver)
5151
{
5252
$resolver->setDefaults([
5353
'widget' => 'single_text',
54+
// if true, the browser will display the native date picker widget
55+
// however, this app uses a custom JavaScript widget, so it must be set to false
5456
'html5' => false,
5557
]);
5658
}

0 commit comments

Comments
 (0)