mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
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", {
|
||||
tagName: "div.timeline-scrollarea",
|
||||
buildKey: (attrs) => `timeline-scrollarea-${attrs.topic.id}`,
|
||||
buildKey: () => `timeline-scrollarea`,
|
||||
|
||||
buildAttributes() {
|
||||
return { style: `height: ${scrollareaHeight()}px` };
|
||||
|
@ -411,7 +411,7 @@ createWidget("timeline-footer-controls", {
|
|||
export default createWidget("topic-timeline", {
|
||||
tagName: "div.topic-timeline",
|
||||
|
||||
buildKey: (attrs) => `topic-timeline-area-${attrs.topic.id}`,
|
||||
buildKey: () => "topic-timeline-area",
|
||||
|
||||
defaultState() {
|
||||
return { position: null, excerpt: null };
|
||||
|
|
Loading…
Reference in New Issue
Block a user