mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix(FilterForm): do not trigger filtering when validation fails (#6659)
This commit is contained in:
parent
c10579e57f
commit
6d50f7e9b1
@ -522,9 +522,11 @@ export const useFilterBlockActionProps = () => {
|
||||
const { doFilter } = useDoFilter();
|
||||
const actionField = useField();
|
||||
actionField.data = actionField.data || {};
|
||||
const form = useForm();
|
||||
|
||||
return {
|
||||
async onClick() {
|
||||
await form.submit();
|
||||
actionField.data.loading = true;
|
||||
await doFilter();
|
||||
actionField.data.loading = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user