Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Polymer 使用纸张下拉菜单webcomponent时,this.isRTL不是功能错误_Polymer_Polymer 1.0_Paper Elements - Fatal编程技术网

Polymer 使用纸张下拉菜单webcomponent时,this.isRTL不是功能错误

Polymer 使用纸张下拉菜单webcomponent时,this.isRTL不是功能错误,polymer,polymer-1.0,paper-elements,Polymer,Polymer 1.0,Paper Elements,加载纸张下拉菜单webcomponent时出现此错误 Uncaught TypeError: this._isRTL is not a function 搜索引擎优化的更长stacktrace: 未捕获类型错误:此.\u isRTL不是 函数get\u localeHorizontalAlign@ iron dropdown.html:306_updateOverlayPosition@ 熨斗下拉列表。html:461_positionTargetChanged@ iron dropdown.

加载纸张下拉菜单webcomponent时出现此错误

Uncaught TypeError: this._isRTL is not a function
搜索引擎优化的更长stacktrace:

未捕获类型错误:此.\u isRTL不是 函数get\u localeHorizontalAlign@ iron dropdown.html:306_updateOverlayPosition@ 熨斗下拉列表。html:461_positionTargetChanged@ iron dropdown.html:405_observerEffect@ polymer.html:1562_effectEffects@polymer.html:1405_propertySetter@ polymer.html:1389setter@polymer.html:1468附件@ iron fit behavior.html:222_invokeBehavior@ polymer micro.html:433_doBehavior@polymer micro.html:426(匿名) 函数)@polymer micro.html:210u makeReady@ polymer micro.html:111(匿名函数)@polymer micro.html:117 polymer mini.html:2046未捕获类型错误:无法读取属性 未定义的“getWidth”(匿名函数)@ 应用程序抽屉布局。html:189完成@ polymer mini.html:2085Debouncer.boundComplete@ polymer mini.html:2062_atEndOfMicrotask@ polymer mini.html:2040window.MutationObserver.observe.characterData@ polymer mini.html:2055


显然,Polymer 1.5与纸张下拉菜单版本~1.2.1不兼容。我不得不降级到Polymer 1.4才能使用纸张下拉菜单

编辑:


问题是该组件与Shadow DOM不兼容。

我在Polymer 1.5.0(在OS X El Capitan上测试了Chrome、Safari和Firefox)中使用该版本的
纸质下拉菜单时没有问题@今晚19点,嗯。。。你是对的。。。什么是。。。我把1.5降到了1.4,但它不能工作,它修复了它。现在我重新升级到1.5,它可以工作了。什么?你知道我是否可以使用聚合物1.2.4的组件吗?而且,这个错误在本地不会出现,只出现在我们的生产服务器上。@Asgeir,这很奇怪。。。我不确定您的生产服务器可能有哪些不同的设置。我唯一能建议的是尝试升级Polymer和纸张下拉菜单依赖项。祝你好运。嗨,我现在也有同样的问题。我使用的是聚合物1.2.3和纸质标签#~1.0.6。有什么建议吗?