mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 03:14:11 +00:00
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:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user