【发布时间】:2019-01-06 08:46:46
【问题描述】:
I am using bootstrap select plugin, When the options at bottom of the select is selected the bootstrap select does not refresh the select properly(the previously selected options remains as selected as the boostrap select does not remove the selected class properly), 我是否必须在引导选择上监听更改事件并刷新选项,这在选项较少时不会发生,这可能是什么解决方案
$('.selectpicker').selectpicker({
});
Js 小提琴:
https://jsfiddle.net/aarthi_101/79rz3j1w/18/,
我在 github 上发布了一个问题, https://github.com/snapappointments/bootstrap-select/issues/85
【问题讨论】:
-
您的 jsfiddle 工作正常,之前选择的选项不会保持选中状态。你还有这个问题吗?
-
是的,还是有这个问题,您可以尝试选择选项列表底部的选项
-
我已经编辑了我的问题并添加了一个截图。请看一下
标签: jquery twitter-bootstrap bootstrap-4 bootstrap-select