fix(ui): resets value in where builder when operator changes (#11136)

### What?
The list filters in the collection view allows invalid queries. If you
enter a value and then change operator, the value will remain even if it
doesn't pass the new value field validation, and an error is thrown.

### Why?
The value isn't reset or revalidated on operator change. It is reset on
field change.

### How?
Resets the value field when the operator changes.

Fixes #10648
This commit is contained in:
Jessica Chowdhury
2025-04-08 14:52:11 +01:00
committed by GitHub
parent f079eced8a
commit ec34e64261
3 changed files with 50 additions and 3 deletions

View File

@@ -413,7 +413,6 @@ describe('List View', () => {
await expect(whereBuilder.locator('.condition__value input')).toHaveValue('')
})
// eslint-disable-next-line playwright/expect-expect
test('should remove condition from URL when value is cleared', async () => {
await page.goto(postsUrl.list)