From 4b3223198acb572c6ca4a2bfefa79b151c6e5adc Mon Sep 17 00:00:00 2001 From: Alexandru Naiman Date: Tue, 3 Nov 2020 14:40:33 +0200 Subject: [PATCH] [IMPROVEMENT] Auto search when text changes in directory textfield (#2547) Co-authored-by: Djorkaeff Alexandre Co-authored-by: Diego Mello --- app/views/DirectoryView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/DirectoryView/index.js b/app/views/DirectoryView/index.js index 18d9c6cd..01788bcc 100644 --- a/app/views/DirectoryView/index.js +++ b/app/views/DirectoryView/index.js @@ -67,7 +67,7 @@ class DirectoryView extends React.Component { } onSearchChangeText = (text) => { - this.setState({ text }); + this.setState({ text }, this.search); } // eslint-disable-next-line react/sort-comp