Closed tsmith123 closed 4 weeks ago
Fixes #837
This PR ensures that the Related Posts section is closed once a comment is made.
This issue took me a while to find but eventually found the problem within Accordion component.
activeKey
onSelect
null
undefined
https://github.com/stackernews/stacker.news/assets/7639854/cf6cb2a3-29fc-4428-848b-1889ceead087
Please QA this if possible as I may have overlooked something.
Thanks @ekzyis - good spot on the conditional. I've put that back. My testing was done with the proper conditional btw.
Fixes #837
Description
This PR ensures that the Related Posts section is closed once a comment is made.
This issue took me a while to find but eventually found the problem within Accordion component.
activeKey
andonSelect
propsonSelect
handler to updateactiveKey
valueactiveKey
value on loadnull
instead ofundefined
(Accordion doesn't seem to behave when usingundefined
)Video
https://github.com/stackernews/stacker.news/assets/7639854/cf6cb2a3-29fc-4428-848b-1889ceead087
Testing
Please QA this if possible as I may have overlooked something.