From b954e79ec823a31009cb61cb09e2c91266ec106d Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 18 Sep 2020 12:49:45 -0400 Subject: [PATCH] Move data from `vnode` to `vnode.state` `vnode.state` is persisted, `vnode` might not be --- js/src/forum/components/PostStreamScrubber.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/forum/components/PostStreamScrubber.js b/js/src/forum/components/PostStreamScrubber.js index 93cb3d7ce..3956e24b9 100644 --- a/js/src/forum/components/PostStreamScrubber.js +++ b/js/src/forum/components/PostStreamScrubber.js @@ -41,13 +41,13 @@ export default class PostStreamScrubber extends Component { height: unreadPercent * 100 + '%', }; - if (vnode.oldStyle) { - $element.stop(true).css(vnode.oldStyle).animate(newStyle); + if (vnode.state.oldStyle) { + $element.stop(true).css(vnode.state.oldStyle).animate(newStyle); } else { $element.css(newStyle); } - vnode.oldStyle = newStyle; + vnode.state.oldStyle = newStyle; } const classNames = ['PostStreamScrubber', 'Dropdown']; if (this.attrs.className) classNames.push(this.attrs.className);