ouija-io / ouija

Communicating with ghosts

Home Page:http://ouija.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment block closes when first comment is submitted

colinmacdonald opened this issue · comments

Introduced with the "has comments" feature.

https://github.com/goinstant/ouija/blob/master/app/components/conversation.js#L55 will render the conversation block with the classes shown here: https://github.com/goinstant/ouija/blob/master/app/components/conversation.js#L60, which removes the ouija-active class when the has-comments class is added.

Should only be handling component state only inside the components themselves. Will be doing a refactor of the click listeners to setState on the components directly instead of adding/removing classes on them externally. Was done this way initially due to a lack of react knowledge :(.