Revert "FIX: Give the topic timeline unique keys for state"
This reverts commit b246a63a59
.
This commit is contained in:
parent
ceb234c2e9
commit
4e0a43f211
|
@ -144,7 +144,7 @@ createWidget("timeline-padding", {
|
||||||
|
|
||||||
createWidget("timeline-scrollarea", {
|
createWidget("timeline-scrollarea", {
|
||||||
tagName: "div.timeline-scrollarea",
|
tagName: "div.timeline-scrollarea",
|
||||||
buildKey: (attrs) => `timeline-scrollarea-${attrs.topic.id}`,
|
buildKey: () => `timeline-scrollarea`,
|
||||||
|
|
||||||
buildAttributes() {
|
buildAttributes() {
|
||||||
return { style: `height: ${scrollareaHeight()}px` };
|
return { style: `height: ${scrollareaHeight()}px` };
|
||||||
|
@ -411,7 +411,7 @@ createWidget("timeline-footer-controls", {
|
||||||
export default createWidget("topic-timeline", {
|
export default createWidget("topic-timeline", {
|
||||||
tagName: "div.topic-timeline",
|
tagName: "div.topic-timeline",
|
||||||
|
|
||||||
buildKey: (attrs) => `topic-timeline-area-${attrs.topic.id}`,
|
buildKey: () => "topic-timeline-area",
|
||||||
|
|
||||||
defaultState() {
|
defaultState() {
|
||||||
return { position: null, excerpt: null };
|
return { position: null, excerpt: null };
|
||||||
|
|
Loading…
Reference in New Issue