-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[DataGrid] Don't evaluate hasEval when disableEval is set #11516
[DataGrid] Don't evaluate hasEval when disableEval is set #11516
Conversation
Deploy preview: https://deploy-preview-11516--material-ui-x.netlify.app/ |
40adfc8
to
cd5e38c
Compare
Is the argos fail expected? It seems to be failing because of something unrelated to this pr |
The Argos diff is due to the fact that you are targeting Unless this PR is a cherry-pick of a PR already applied to
|
cd5e38c
to
d811287
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
d811287
to
6f12f0a
Compare
Thanks @flaviendelangle. I changed the branch. Can I help with the back-porting? |
We have a new bot that should create the PR on |
packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts
Outdated
Show resolved
Hide resolved
Head branch was pushed to by a user without write access
e564a6f
to
0cd6fbe
Compare
@romgrk I had to retrigger the pipeline because a check failed. Can you please enable auto-merge again? |
All good, thanks for the PR! |
Merry christmas!
Fixes #11465
I had the same issue as #11465 and changed the evaluation of hasEval so that it no longer writes a warning/error in the console in case eval is blocked by the csp.
I also made disableEval appeir in the DataGrid API as per @flaviendelangle but I'm of course open to reverting this in case it's not wanted.
This change also makes it so that the eval check won't be executed if
filterMode='server'
regardless of the disableEval prop.