ouija-io/ouija

Comment block closes when first comment is submitted

colinmacdonald opened this issue · 1 comments

Comment block closes when first comment is submitted

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 :(.