モーダル ウィンドウ内で bootstrap-datepicker を使用すると、ホバー イベント (日、ボタンなど) に装飾がなく、現在の日付が強調表示されません。
日付ピッカーがモーダルウィンドウ内にない場合は正常に機能します。
どうすれば修正できますか?
編集 :
私のビュー「Details.cshtml」で:
<div class="form-group">
@Html.LabelFor(model => model.ImpactForm.DateFinTestPilote, new { @class = "control-label col-md-4" })
<div class="col-md-8">
@Html.EditorFor(model => model.ImpactForm.DateFinTestPilote)
@Html.ValidationMessageFor(model => model.ImpactForm.DateDebutTestPilote)
</div>
</div>
Nullable DateTime タイプのエディター テンプレートがあります。
@inherits System.Web.Mvc.WebViewPage<System.Nullable<DateTime>>
@if (Model.HasValue)
{
@Html.TextBox("", (Model.Value.ToShortDateString()), new { @class = "datepicker form-control" })
}
else
{
@Html.TextBox("", null, new { @class = "datepicker form-control" })
}
_Layout.cshtml には、bootstrap.css と bootstrap.js が読み込まれます。
datepicker.css、bootstrap-datepicker.js、bootstrap-datepicker.fr.js が Details.cshtml に読み込まれます。