Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaydev1988 opened this issue Apr 16, 2018 · 0 comments

Comments

@jaydev1988
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant