在编辑表JS Tabulator时,Android键盘上闪烁

问题描述 投票:0回答:1

Tabulators mainpage示例适用于移动设备就好了。当尝试编辑Android手机上的列时,键盘会显示,然后几乎立即消失,不会选中该框。

使用Tabulator版本4.2.1

我复制了没有运气的源代码,任何帮助都会感激不尽。

我正在使用XAMMP堆栈本地托管网站使用Android版本9与网络浏览器chrome版本72.0.3626.105

        var table = new Tabulator("#example-table", {
        layout:"fitColumns",      //fit columns to width of table
        responsiveLayout:"hide",  //hide columns that dont fit on the table
        columns:[                 //define the table columns
            {title:"Name", field:"name", editor:"input"},
            {title:"Task Progress", field:"progress", align:"left", formatter:"progress", editor:true},
            {title:"Gender", field:"gender", width:95, editor:"select", editorParams:{"Male":"male", "Female":"female"}},
            {title:"Color", field:"col", width:130, editor:"input"},
            {title:"Date Of Birth", field:"dob", width:130, sorter:"date", align:"center"},
        ],
    });

    var tableData = [
        {id:1, name:"Billy Bob", age:"12", gender:"male", height:1, col:"red", dob:"", cheese:1},
        {id:2, name:"Mary May", age:"1", gender:"female", height:2, col:"blue", dob:"14/05/1982", cheese:true},
    ]
    table.setData(tabledata);

不知道为什么它不起作用,不知道它是不是一个bug或者我的目的。

任何建议都会很棒

android android-softkeyboard tabulator
1个回答
0
投票

您需要在表上设置高度才能使用虚拟DOM。目前,您正在尝试使用像ActivationLayout这样的选项,只有在启用虚拟DOM时才能工作,但是如果没有高度,则不知道滚动区域应该有多大。

© www.soinside.com 2019 - 2024. All rights reserved.