【问题标题】:kendo combobox clear button is not working with android 9剑道组合框清除按钮不适用于android 9
【发布时间】:2019-05-02 07:42:36
【问题描述】:

清除按钮不适用于 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>

【问题讨论】:

  • 这段代码 sn-p 在我的带有 Android 9 的 Google Pixel 上与最新的 Firefox 和 Chrome 一起工作就像一个魅力。我怀疑这是 Android 的问题,但与您使用的浏览器有关。也许您安装了一些插件,导致应用程序无法正常工作?
  • Window 平台(Firefox 和 Chrome)工作正常,但我在我的科尔多瓦应用程序中使用了此代码。请安装i.diawi.com/9CLnGN此应用并查看

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


【解决方案1】:

请更新

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

问题可能是旧版本,如果您更新它,问题将得到解决

到最新版本和剑道组合框清除按钮将适用于 android 9

【讨论】:

    猜你喜欢
    • 2014-02-06
    • 1970-01-01
    • 2023-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多