我有一个Bootstrap的弹出框,并且其内容是Kendo UI颜色选择器小部件。
当您在颜色选择器小部件中单击时,弹出框会关闭,即使将
为什么?如何保持弹出框打开直到在弹出框外进行单击?
当您在颜色选择器小部件中单击时,弹出框会关闭,即使将
trigger
选项设置为focus
也是如此。为什么?如何保持弹出框打开直到在弹出框外进行单击?
<a id="popover" href="#">Color Picker</a>
var $kendoColorPicker = $("<div></div>").kendoFlatColorPicker({
value: "#ffffff"
});
$("#popover").popover({
container: "body",
content: $kendoColorPicker,
html: true,
placement: "bottom",
trigger: "focus"
});
See a live demo here : jsfiddle
trigger: "focus"
即可。更新的 fiddle - Pugazh