From 8e133a065ae6c6a5552f1a1add78b8701b3c6c41 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Fri, 25 Mar 2016 10:46:32 -0700 Subject: [PATCH] fix(empty-state): Make sure inbox zero /always/ animates - Animation plays on mount, so always unmount the empty state component instead of hiding it. --- src/components/empty-list-state.cjsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/empty-list-state.cjsx b/src/components/empty-list-state.cjsx index 25c3a9b00..93658d512 100644 --- a/src/components/empty-list-state.cjsx +++ b/src/components/empty-list-state.cjsx @@ -113,6 +113,7 @@ class EmptyListState extends React.Component @setState(active:false) render: -> + return unless @props.visible ContentComponent = EmptyPerspectiveState current = FocusedPerspectiveStore.current() @@ -128,7 +129,6 @@ class EmptyListState extends React.Component classes = classNames 'empty-state': true - 'visible': @props.visible 'active': @state.active