fix(webui): fix select field height and multi-select overflow/interaction issues (#307)

* fix(webui): standardize single-select custom field height

* fix(webui): fix multi-select badge overflow calculation and simplify direct edit
This commit is contained in:
Yiling-J
2026-08-14 14:35:17 +08:00
committed by GitHub
parent fc878775c2
commit 61a61abc7c
5 changed files with 151 additions and 201 deletions
@@ -121,4 +121,15 @@ describe('SelectMultiField Component', () => {
expect(onSave).toHaveBeenCalledWith(['foo', 'new-multi-option'])
})
})
it('opens search input directly on first click even when multiple items are selected', () => {
render(<SelectMultiField value={['foo', 'bar']} config={sampleConfig} onSave={vi.fn()} />)
const trigger = screen.getByText('Foo')
fireEvent.click(trigger)
const searchInput = screen.getByPlaceholderText('Search options...')
expect(searchInput).toBeTruthy()
expect(screen.getByText('abc')).toBeTruthy()
})
})