Opera中的选择不会在更改事件中关闭 [英] Select in Opera doesn't close on change event
本文介绍了Opera中的选择不会在更改事件中关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Opera中(并且仅在Opera中),我有select
元素的奇怪行为.
在更改事件中,如果我禁用此选择,则它不会关闭(折叠).
In Opera (and only in Opera) I have strange behavior of select
element.
In change event, if I disable this select, it doesn't close (collapse).
$('select').bind('change', function()
{
$(this).attr('disabled', true);
});
这是一些已知的歌剧问题吗?到目前为止,我还没有发现任何东西.
Is it some known issue of opera? So far I haven't found anything.
推荐答案
在禁用选择之前使用一小段延迟,10ms就足够了
Use a short delay before disabling the select, 10ms should be sufficient
这篇关于Opera中的选择不会在更改事件中关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文