developit / developit/preact-mdl
Slider duplicating on rerender
- Dominant language
- JavaScript
- Stars
- 192
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
When I use the ``Slider`` component and a rerender happens (state or props change), then the slider will be duplicated.
Might possibly be the same error source as #7? (A problem with the remounting by mdl)
Minimal setup:
```jsx
class SliderTest extends Component {
updateState = e => {
this.setState({
value: e.target.valueAsNumber
})
}
render(_, { value }) {
return (
)
}
}
```
After some changes will render this:

For an example see here:
https://codesandbox.io/s/6wx9r52lw
I will try to tackle this myself as well, but I do not know if my prect / mdl knowledge is enough for that 😅 .
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.