Уважаемые, я пытался использовать раскрывающийся список в своем проекте после обновления до начальной загрузки 4, он работал до, но не после обновления, в любом случае проблема возникла в js, появилась следующая ошибка, когда я решил нажать кнопку раскрывающегося списка.
Uncaught TypeError: Bootstrap dropdown require Popper.js (https://popper.js.org)
at Dropdown.toggle (bootstrap.js:1533)
at HTMLButtonElement.<anonymous> (bootstrap.js:1690)
at Function.each (jquery-3.0.0.js:359)
at jQuery.fn.init.each (jquery-3.0.0.js:152)
at jQuery.fn.init._jQueryInterface [as dropdown] (bootstrap.js:1675)
at HTMLButtonElement.<anonymous> (bootstrap.js:1842)
at HTMLDocument.dispatch (jquery-3.0.0.js:5087)
at HTMLDocument.elemData.handle (jquery-3.0.0.js:4895)
Я много искал, чтобы решить эту проблему, и я пытался включить popper.js из umd и по ссылке непосредственно на главную страницу или на той же странице, но это не работает
Также я попытался изменить класс CSS, но ничего не произошло.
вот моя главная страница (по умолчанию добавлена Visual Studio)
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> - Arabian Food Supplies</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference runat="server" Path="~/Content/css" />
<link href="Content/fontawesome-all.css" rel="stylesheet" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<style type="text/css">
.auto-style1 {
font-size: small;
color: #999999;
}
</style>
</head>
<body>
<form runat="server">
<asp:ScriptManager runat="server" EnablePageMethods="true" EnableCdn="True">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="respond" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%>
</Scripts>
</asp:ScriptManager>
первая попытка:
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<li>
<asp:LinkButton ID="LinkButton2" runat="server">Solve</asp:LinkButton></li>
<li>
<asp:LinkButton ID="LinkButton3" runat="server">Abort</asp:LinkButton></li>
</ul>
</div>
вторая попытка
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
Action<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Solve</a></li>
<li><a href="#">Abort</a></li>
</ul>
</div>