Skip to content

Commit ee62dcd

Browse files
committed
bug #877 Fix DateTimePicker widget (yceruto)
This PR was merged into the master branch. Discussion ---------- Fix DateTimePicker widget As spotted here symfony/symfony#28723 (comment) we need to disable `html5` to use a `type="text"` input and make it work again. | before | after | | --- | --- | | ![wrong_datepicker](https://user-images.githubusercontent.com/2028198/47217570-d05a9880-d376-11e8-9e3a-116769569f22.png) | ![correct_datepicker](https://user-images.githubusercontent.com/2028198/47217582-d6e91000-d376-11e8-9fb7-86384c57ebbb.png) | Commits ------- a556025 Fix DateTimePicker widget
2 parents 61bae05 + a556025 commit ee62dcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Form/Type/DateTimePickerType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function configureOptions(OptionsResolver $resolver)
5151
{
5252
$resolver->setDefaults([
5353
'widget' => 'single_text',
54+
'html5' => false,
5455
]);
5556
}
5657

0 commit comments

Comments
 (0)