当鼠标悬停选项或在mozilla firefox的下拉列表中将光标从上到下移动时,selectedIndex事件将触发

时间:2014-11-04 07:09:31

标签: c# asp.net

我遇到了firefox下拉列表的问题。当我将鼠标悬停在下拉项目上或将光标移动到项目上时,下拉列表的selectedindex事件会在firefox中触发,我在IE中没有遇到此问题,Chrome。

    .aspx:
 Collapse | Copy Code
<asp:DropDownList ID="ddlTempGroups" runat="server" onselectedindexchanged="ddlTempGroups_SelectedIndexChanged">
<asp:ListItem Text="-" Value="-" > 
<asp:ListItem Text="type" Value="type" >
<asp:ListItem Text="date" Value="date" >
</asp:DropdownList>


.cs
protected void ddlTempGroups_SelectedIndexChanged(object sender, EventArgs e)
      {   }

1 个答案:

答案 0 :(得分:0)

这似乎是known bug。如this thread中所述,您可以尝试:

ng-mouseleave="showSelect=false"