From d10da2494da021ca8bf887ec237a69181a30fd57 Mon Sep 17 00:00:00 2001 From: jonyshi Date: Sun, 24 Jun 2018 10:46:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=BD=B1=E5=93=8D=20#128?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/filterColumn.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/filterColumn.js b/src/lib/filterColumn.js index f6a402a..782b350 100644 --- a/src/lib/filterColumn.js +++ b/src/lib/filterColumn.js @@ -32,6 +32,12 @@ export default function filterColumn(Table, Checkbox, Popover, Icon) { }; } + componentWillReceiveProps(nextProps){ + this.setState({ + showPopover:false + }) + } + getShowModal=(event)=>{ let {showModal} = this.state; if(showModal){ @@ -103,7 +109,7 @@ export default function filterColumn(Table, Checkbox, Popover, Icon) {