Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] form.setFieldStatep路径"*(x,x,x)"时匹配失败 #2137

Closed
1 task
tpc-ht opened this issue Sep 10, 2021 · 0 comments · Fixed by #2148
Closed
1 task

[Bug Report] form.setFieldStatep路径"*(x,x,x)"时匹配失败 #2137

tpc-ht opened this issue Sep 10, 2021 · 0 comments · Fixed by #2148
Labels
bug Something isn't working

Comments

@tpc-ht
Copy link

tpc-ht commented Sep 10, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

const form = createForm({
effects() {
onFieldValueChange("[startDate,endDate]", (state) => {
console.log(
FormPath.parse("*([startDate,endDate],date,week)").match("date")
); //false
console.log(FormPath.parse("date").match("date")); //true

  console.log(
    FormPath.parse("*([startDate,endDate],date)").match("date") //true
  );
  console.log("state", state);
});

}
});

What is expected?

true

What is actually happening?

true

Package

@formily/[email protected]


@janryWang janryWang added the bug Something isn't working label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants