Skip to content

yii2-flatpickr date Picker close when we click on any where on Bootstrap Modal #8

@jaydev1988

Description

@jaydev1988

I am using flatpicker date picker in bootstrap modal.When i click on modal that date picker is coming ,but when we click on any date ,time ,sec or any place of the date picker then that date picker pop up is closed.

i am using flatpickr v4.4.4 js in yii2
I displaying datePicker in modal.When click on anywhere of the datepicker then datepicker is closed
Below is my yii2 Code.
echo $form->field($model, $updateFieldName)->widget(FlatpickrWidget::className(), [
'locale' => strtolower(substr(Yii::$app->language, 0, 2)),
'plugins'=> [
'minMaxTimePlugin'=>[
'table'=> [
$date[0] => [
'minTime' => $date[1]
]
]
]
],
'groupBtnShow' => true,
'options' => [
'class' => 'form-control',
],
'clientOptions' => [
/'allowInput' => true,/
'minDate' => $tripCreateTime,
'enableTime' => true,
'time_24hr' => true,
'dateFormat'=> "d-m-Y H:i:00",
'minuteIncrement'=>1,

      ],
  ]);

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions