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:
committed by
GitHub
parent
f079eced8a
commit
ec34e64261
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user