Skip to content

v0.18.1

Choose a tag to compare

@github-actions github-actions released this 01 Nov 22:52
· 223 commits to main since this release

Fixed

  • The rule that a disabled control calls no onClick of yours on its parts (the README's Customization chapter, "Disabled controls", and rule 4 of the guide's Customization chapter) promised more than the components do, and now says what they do. It covers the control's own element and the parts inside it or that pass their click to it (a Switch's thumb and label, an Input's bordered wrapper, a Dropdown's value), not every part beside it: a part that passes no click to the control, such as the error message of a TimePicker or DatePicker, takes your onClick in every state, and so do the parts of ColorPicker and ColorPicker.HexField (opacityLabel, opacityValue, label, errorMessage), since a ColorPicker has no disabled state: while its value is not a hex color only the color parts bound to it are disabled, and its hex field stays editable. The exception of the ColorArea, ColorSlider and AlphaSlider drawings said that each slider is its range input, natively disabled; each root is a <div> that takes your onClick while disabled too, and only the range inputs inside it are natively disabled. The exceptions stay those drawings (field, rail, thumb) and a disabled Option's own onClick prop. No component changed.

Changed

  • Tests: the timeouts of the slow tests hold under load, where the 0.18.0 gate exceeded twelve of them, and no assertion changed. In scripts/__tests__/verify-dist.test.mjs every checkServerImport case has 30 s per check (nine had Vitest's 5 s default), and every case that runs the whole check (verifyDist or main) three times its former timeout (90 s where it had 30 s); Combobox's data-mode test "keeps option ids per value across filtering and reopening" has 30 s. Two new tests pin that the parts of ColorPicker and ColorPicker.HexField call your onClick while the value is not a hex color, as while it is one.