聚合物核心列表不工作在铬

Polymer core-list not working in chrome

本文关键字:工作 核心 列表 聚合物      更新时间:2023-09-26

我们在一个使用core-list组件的应用程序中有一个Polymer页面。该组件在Firefox和Safari上运行良好。然而,在Chrome中,它的行为很奇怪。任何聚合物专家谁可以帮助解决这个问题?以下是问题的细节:

代码:

    <core-list id="dashboardList" data="{{dashboard_list}}" on-core-activate="{{editDashboardTapped}}" height="100" selectionEnabled layout horizontal flex>
    <template>
        <div class="row {{ {selected: selected} | tokenList}}" layout horizontal center>
            <div><paper-checkbox checked="{{model.checked}}"></paper-checkbox></div>
            <div flex two>{{model.title}}</div>
            <div flex two>{{model.description}}</div>
        </div>
    </template>
</core-list>

问题:在Firefox/Safari中,行点击工作正常,"核心激活"功能(editDashboardTapped)被正确调用。然而,在Chrome中,该函数不被调用。

我正在使用最新版本的Chrome (43.0.2357.81)

感谢任何指向正确方向的指示。

我也遇到过同样的问题。我的核心列表在Firefox中有效,而在Chrome中无效。我注意到Chrome给了我一个错误,没有设置高度,即使我设置高度为100%。

将height:100%改为height:500px这不是一个理想的解决方案,但希望它能帮助你进入正确的方向。

原来我们使用的是Polymer的0.5版本(不知道是谁决定这么做的),但是升级到生产版本1.0解决了这个问题。