chore: refresh the grid rows after typing text in the text filter (#1533)

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo
2022-12-05 09:55:37 +08:00
committed by GitHub
parent 0d879a6091
commit 721781f0ae
2 changed files with 33 additions and 9 deletions

View File

@ -152,8 +152,9 @@ class _TextFilterEditorState extends State<TextFilterEditor> {
return FlowyTextField(
text: state.filter.content,
hintText: LocaleKeys.grid_settings_typeAValue.tr(),
debounceDuration: const Duration(milliseconds: 300),
autoFocus: false,
onSubmitted: (text) {
onChanged: (text) {
context
.read<TextFilterEditorBloc>()
.add(TextFilterEditorEvent.updateContent(text));