Repository navigation
v0.190.6
Patch Changes
-
#1480
5372f55cThanks @tenphi! -Button's docs now listisDisabledwith itsfalsedefault, so theno-redundant-default-proplint rule flags a redundantisDisabled={false}onButton. They and theFormdocs also say that<Provider isDisabled>and<Form isDisabled>disable fields andForm.Submit/Form.Reset, but notButton,ItemButtonorItemAction. -
#1480
5372f55cThanks @tenphi! -Disclosure,Disclosure.GroupandDisclosure.Itemforward DOM attributes (id,className,style,aria-*,data-*),themeand event handlers to their root, and their types accept them. A caller'stokensnow merge with the$disclosure-transitiontoken instead of being dropped.Disclosure.Item'sidstays its group key and isn't rendered as the DOMid. -
#1480
5372f55cThanks @tenphi! -DisplayTransitionfinishes a transition when itsrefis wrapped in a function that is new on every render, such as an inline wrapper or an unmemoizedmergeRefsin code that React Compiler doesn't compile. React detaches such a ref and re-attaches the same element on each render, and that dropped the transition listeners. A re-render after the transition had started then left an exit unfinished, with the element still mounted, andonRest('enter')never fired. -
#1480
5372f55cThanks @tenphi! -Placeholder, and so everySkeletonplaceholder, renders adata-loading-placeholderattribute: a locale-independent way to detect loading content that aqaoraria-labelprop doesn't replace. Match it instead of the translated "Content is loading" label. -
#1480
5372f55cThanks @tenphi! -Selectkeeps its item type, asComboBoxandPickerdo, so a render-function child gets the item fromitemsinstead ofobject. With alabel, itsrefnow reaches the field under React 18 as well, and is typed as theHTMLDivElementit receives rather than aDOMRefValue. -
#1480
5372f55cThanks @tenphi! -SliderandRangeSliderpass theirrefon under React 18 too; it was dropped there.forwardRefWithGenerics, which caused it and is no longer used, is deprecated: useforwardRefwith a cast that restores the generic, asSelectdoes. -
#1480
5372f55cThanks @tenphi! -toast({ duration: null })keeps the toast until it is dismissed, as the docs say. It used to fall back to the 5-second default, which only a missingdurationshould do. Notifications already handlednullthis way. -
#1480
5372f55cThanks @tenphi! - A long toast now stays withinmin(100vw - 4x, 50x)and wraps its message, breaking a word that is wider than the toast, such as a URL. Its wrapper used to have amax-contentminimum width, which beat the cap, so the toast ran off both edges of a narrow viewport. A notification's description now breaks such a word too. Toasts and notifications also restack when a viewport resize changes their height, instead of overlapping until the next render.