Fix for TreeFieldComponent (#12519)

- Prevent deselect by clicking on same entry
- Updated playwright tests
This commit is contained in:
Oliver
2026-07-31 14:49:22 +10:00
committed by GitHub
parent b50ad42a3e
commit bd1321c21f
2 changed files with 9 additions and 0 deletions
@@ -384,6 +384,7 @@ function TreeFieldComponent({
}}
searchable
filter={() => true}
allowDeselect={false}
clearable={showNavigateSection ? false : !definition.required}
rightSection={navigateRightSection}
rightSectionPointerEvents={showNavigateSection ? 'all' : undefined}
@@ -1190,7 +1190,15 @@ test('Parts - Import supplier part', async ({ browser }) => {
await page
.getByRole('button', { name: 'action-button-import-part-BOLT-Steel-M5-5' })
.click();
await page.waitForLoadState('networkidle');
await page.waitForTimeout(250);
await page
.getByRole('textbox', { name: 'tree-field-field' })
.fill('electronics');
await page.getByText('ElectronicsElectronic').click();
await page
.getByRole('button', { name: 'action-button-import-part-now' })
.click();