Select2显示闪烁的“多个"滚动条,直到ready() [英] Select2 shows flashing 'multiple' scrollbar until ready()

查看:252
本文介绍了Select2显示闪烁的“多个"滚动条,直到ready()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用multiple select2元素时,它很短地显示了垂直滚动条(HTML Select),直到调用ready()并更改了元素.

When I use a multiple select2 element, it very short show a vertical scrollbar (HTML Select) until the ready() is called and the element is changed.

这甚至可以在网站 https://select2.org/getting-started上看到/basic-usage .如果滚动到多个组合框,然后单击刷新",您很快就会在右侧看到传统的滚动条.

This can even be observed at the website https://select2.org/getting-started/basic-usage. If you scroll to the multiple-combobox, and hit Refresh you very shortly see the traditional scrollbar on the right.

有办法防止这种情况吗?

Is there a way to prevent this?

谢谢

推荐答案

我找到了一个解决方案:将visibility: hidden;添加到<select> style/CSS.

I found a solution: add visibility: hidden; to the <select>style/CSS.

这篇关于Select2显示闪烁的“多个"滚动条,直到ready()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆