Extjs Tagfield:如何通过点击IE11中的标签来关闭其列表? [英] Extjs Tagfield: How to close its list by clicking on its label in IE11?
本文介绍了Extjs Tagfield:如何通过点击IE11中的标签来关闭其列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过在Internet Explorer 11中点击其标签来关闭Ext.js 6.0.2中的Tagfield列表?
How to close the list of a Tagfield in Ext.js 6.0.2 by clicking on its label in Internet Explorer 11?
查看小提琴以测试它。
https://fiddle.sencha。 com /#fiddle / 1h9n
推荐答案
当某人扩展我们的标签字段的选定列表时,一个onClick侦听器。该监听器在点击标签字段标签时折叠选定列表。
When somebody expands "selected list" of our tagfield, than the label gets a onClick Listener. This listener collapses the "selected list" on click on the tagfields label.
listeners: {
expand: function (field) {
// Collapse List when click on Label
field.getEl().el.component.labelEl.on('click', function () {
setTimeout(function () {
field.collapse();
}, 100);
}
);
}
}
这篇关于Extjs Tagfield:如何通过点击IE11中的标签来关闭其列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文