[英]Polymer: paper-slider gives ripple error
I'm trying to implement in one of my 1.0 polymer elements a paper-slider 我正在尝试在我的1.0聚合物元素中实现一个纸滑块
<link rel="import" href="/bower/polymer/polymer.html">
<link rel="import" href="/bower/paper-slider/paper-slider.html">
<dom-module id="view">
<template>
<paper-slider min="10" max="200" value="110"></paper-slider>
...
And the error I get reads: 我得到的错误是:
Uncaught TypeError: this.hasRipple is not a function
Polymer._focusedChanged @ paper slider.html:721
Polymer.Base.extend._complexObserverEffect @ polymer.html:1454
...
I tried to add paper-ripple 我试图添加纸波纹
<link rel="import" href="/bower/paper-ripple/paper-ripple.html">
But the error didn't go away. 但是错误并没有消失。 I think I have to attach the ripple effect to the slider somehow.
我认为我必须以某种方式将波纹效果附加到滑块上。 Any suggestions how to fix this ?
任何建议如何解决这个问题?
I faced the same issue, and I found a fix. 我遇到了同样的问题,并且找到了解决方法。 I have answered it into the issue page int github here : https://github.com/PolymerElements/paper-slider/issues/80
我已经将其回答到问题页面int github上了: https : //github.com/PolymerElements/paper-slider/issues/80
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.