qooxdoo 创建自定义下拉框时,点击表单元素中的下拉框,下拉框自动关闭

qooxdoo When you create a custom drop down box, click the drop-down box in the form element and the drop-down box is automatically closed

转到页面并单击下拉框。当你点击下拉框里面的表单元素时,下拉框也会关闭。如何解决这个问题

游乐场link:tinyurl.com/y9kzfct8

问题是表格的重点。您可以在构造函数中设置 this.setKeepFocus(true) 。当您保留 autohide(false) 时,您现在必须处理关闭,或者您可以将其设置为 true 但随后您必须处理表单上所有子元素的焦点。

感谢@MarkusDonhauser_twitter

的帮助

selectbox.getChildControl("popup").addListener("changeVisibility", 函数(e) { this.setAutoHide(e.getData() !== "visible");}, 这个);