From 3e7b7ea48e8ee6b4f2059f54e7cbc81c19ef4bef Mon Sep 17 00:00:00 2001
From: Monika <monika_hedman@brown.edu>
Date: Wed, 19 Jun 2019 12:44:35 -0400
Subject: filtering by basic key working nicely

---
 src/client/views/search/CheckBox.tsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/client/views/search/CheckBox.tsx')

diff --git a/src/client/views/search/CheckBox.tsx b/src/client/views/search/CheckBox.tsx
index 94fd3503d..fc1d4005e 100644
--- a/src/client/views/search/CheckBox.tsx
+++ b/src/client/views/search/CheckBox.tsx
@@ -42,7 +42,7 @@ export class CheckBox extends React.Component<CheckBoxProps>{
             targets: this.checkRef.current,
             easing: "easeInOutQuad",
             duration: 500,
-            opacity: 1 ,
+            opacity: 0 ,
         });
         this.checkTimeline.add({
             targets: this.checkRef.current,
@@ -51,11 +51,15 @@ export class CheckBox extends React.Component<CheckBoxProps>{
             strokeDashoffset: [anime.setDashoffset, 0],
             opacity: 1
         });
+
+        if(this.props.originalStatus){
+            this.checkTimeline.play();
+        }
     }
 
     @action.bound
     onClick = () => {
-        this.props.updateStatus(this._status);
+        this.props.updateStatus(!this._status);
 
         if(this._status){
             this.uncheckTimeline.play();
-- 
cgit v1.2.3-70-g09d2

