mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-27 18:18:46 +00:00
[UI] Tree select in form fields (#12217)
* Add TreeField component * Add chevrons in dropdown menu * Custom node rendering * Add childIdentifier * Ensure full value gets displayed * Fix for search results * Refactor old renderers * Override field types * use definition filters * Better location validation messages * Tweaks * Fix unit test * Include icon * Fix playwright test * Fix call to onValueChange * Updated playwright tests * Use pathstring in selectedLabel (if available) * Mark structural nodes * Retain selected value when dropdown open * Add better placeholder values * Simplify field selection
This commit is contained in:
1 parent
7a81aa216f
commit
09f85aeae9
13 files changed
+688
-62
No files matched your search
@@ -76,7 +76,7 @@ test('Forms - Stock Item Validation', async ({ browser }) => {
|
||||
.waitFor();
|
||||
|
||||
// Set location
|
||||
await page.getByLabel('related-field-location').click();
|
||||
await page.getByLabel('tree-field-location').fill('production');
|
||||
await page.getByText('Electronics production facility').click();
|
||||
|
||||
// Create the stock item
|
||||
|
||||
Reference in new issue
Block a user