ouija-io / ouija

Communicating with ghosts
http://ouija.io
BSD 3-Clause "New" or "Revised" License
128 stars 14 forks source link

Comment block closes when first comment is submitted #62

Closed colinmacdonald closed 10 years ago

colinmacdonald commented 10 years ago

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