kendo combobox clear按钮不适用于android 9

时间:2019-05-02 07:42:36

标签: cordova kendo-ui android-9.0-pie kendo-combobox

清除按钮不适用于android 9

我与其他Android设备进行了检查,但所有低于版本的设备都正常运行。仅适用于android 9版本无法正常运行

请检查并告知我们是否找到解决方案

步骤:1。搜索任何文本(例如项目)

  1. ,然后选中清除按钮,以显示在文本框中的右侧中间

  2. 单击清除按钮,但当前不起作用

<!DOCTYPE html>
<html>
<head>
    <base href="https://demos.telerik.com/kendo-ui/combobox/events">
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.common-material.min.css" />
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.material.min.css" />
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.1.220/styles/kendo.material.mobile.min.css" />

    <script src="https://kendo.cdn.telerik.com/2019.1.220/js/jquery.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2019.1.220/js/kendo.all.min.js"></script>
    

    <link rel="stylesheet" href="../content/shared/styles/examples-offline.css">
    <script src="../content/shared/js/console.js"></script>
</head>
<body>

<div id="example">
    <div class="demo-section k-content">
        <h4>ComboBox</h4>
        <input id="combobox" style="width: 100%" />
    </div>
    <div class="box">
        <h4>Console log</h4>
        <div class="console"></div>
    </div>
    <script>
        $(document).ready(function () {
            function onOpen() {
                if ("kendoConsole" in window) {
                    kendoConsole.log("event :: open");
                }
            }

            function onClose() {
                if ("kendoConsole" in window) {
                    kendoConsole.log("event :: close");
                }
            }

            function onChange() {
                if ("kendoConsole" in window) {
                    kendoConsole.log("event :: change");
                }
            }

            function onSelect(e) {
                if ("kendoConsole" in window) {
                    if (e.dataItem) {
                        var dataItem = e.dataItem;
                        kendoConsole.log("event :: select (" + dataItem.text + " : " + dataItem.value + ")");
                    } else {
                        kendoConsole.log("event :: select");
                    }
                }
            };

            function onDataBound(e) {
                if ("kendoConsole" in window) {
                    kendoConsole.log("event :: dataBound");
                }
            };

            function onFiltering(e) {
                if ("kendoConsole" in window) {
                    kendoConsole.log("event :: filtering");
                }
            }

            var data = [
                { text: "Item 1", value: "1" },
                { text: "Item 2", value: "2" },
                { text: "Item 3", value: "3" }
            ];

            $("#combobox").kendoComboBox({
                dataTextField: "text",
                dataValueField: "value",
                filter: "startswith",
                dataSource: data,
                select: onSelect,
               minLength: 2,
                    autoBind: true, //this is important
                
                 
                 
            });
        });
    </script>
</div>


</body>
</html>

1 个答案:

答案 0 :(得分:1)

请更新

kendo.all.min.js 
kendo.mobile.all.min.css
kendo.mobile.min.js 

该问题可能适用于旧版本,如果您进行更新,则此问题将得到解决

最新版本和kendo combobox清除按钮将与android 9一起使用