简体   繁体   English

选择下拉列表不显示

[英]select drop down not showing

I have a very complicated Javascript/JQuery Leaflet map. 我有一个非常复杂的Javascript / JQuery Leaflet映射。 There is supposed to be a Leaflet control with a dropdown select box. 应该有一个带有下拉选择框的Leaflet控件。 The select box pulls it's content via AJAX. 选择框通过AJAX提取内容。 It pulls the content correctly and the generated HTML is fine and can be seen. 它可以正确提取内容,并且生成的HTML很好,可以看到。 If I use the keyboard to highlight the select menu, I can use the arrow keys to change the value. 如果使用键盘突出显示选择菜单,则可以使用箭头键更改值。 However, I can't click on the select menu and see the drop down box. 但是,我无法单击选择菜单并看到下拉框。 The click is being captured fine(checked with JQuery .click()). 该点击已被很好捕获(已通过JQuery .click()检查)。

I can't share the specific code because I'm not sure what's wrong and I can't share the whole thing because of security issues. 我不能共享特定的代码,因为我不确定发生了什么问题,并且由于安全问题,我无法共享整个代码。 So, my question is a little more general: 因此,我的问题要笼统一些:

What kinds of errors/bugs should I be looking for if a select dropdown menu is not showing on click? 如果单击时未显示选择下拉菜单,我应该寻找哪种错误/错误? What are various things I can check to see what is wrong? 我可以检查哪些内容以查看出了什么问题?

Thanks. 谢谢。

Nevermind - known issue with Leaflet. 没关系-Leaflet的已知问题。 Custom Control not working 自定义控件不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM