mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-15 07:05:47 +01:00
- Add setWidth=true for select-one in _onInput (removes the SelectOne
exclusion so both types now update width consistently on input)
- Update the corresponding unit test to reflect new behaviour
- Add two HTML test fixtures to both select-one and select-multiple
test pages: input-width-placeholder (CJK placeholder) and
input-width-typing (for typing width verification)
- Add describe('Input width') blocks to select-one.spec.ts and
select-multiple.spec.ts covering:
* CJK placeholder sets minWidth in ch units
* Typing English 'f' sets style.width to '2ch'
* Typing CJK '中' sets style.width to a valid ch value
Closes testing gap for the DOM-based setWidth implementation
|
||
|---|---|---|
| .. | ||
| actions | ||
| components | ||
| lib | ||
| reducers | ||
| search | ||
| store | ||
| choices.test.ts | ||
| templates.test.ts | ||