Repository navigation
v0.186.0
Minor Changes
-
#1443
e28ee207Thanks @tenphi! -TagInputadds exactly the option that is clicked or picked with the arrow keys, as its own key. Typed text now names an option by its exact label, then by its key, anywhere in the list, before a case- or accent-insensitive match counts, and Enter, a delimiter, a paste and leaving the field always add the same option for the same text: the option the text names stays listed and focused even when the filter would hide it. WithallowsCustomValue, text that matches an option only in case or accents is its own value and is added as typed (parisstaysparisnext to an optionParis); without it,productionstill addsProduction.TagInputno longer puts a refused duplicate back into the input: the value is already a chip, and the message says so. Escape clears a message even when the input is empty, and leaving the field clears one once nothing is left in the input, so a refused duplicate no longer leaves an empty field marked invalid. Withdelimiters={[]}, several refused values from one paste are no longer glued into one line that leaving the field would add as a single value; only the first stays in the input, with its message.TagInputcommits the typed text before the click that takes focus away is handled, so a Save button, a fast tap or a Playwrightclick()no longer submits a form without it. While the suggestions show, a press on an outside control (a button, a link, another field) is no longer swallowed by the list: it reaches the control, so a native Save button saves on the first click. A press anywhere else, such as a dialog's backdrop, still only closes the list.TagInput,ComboBox,SearchComboBoxandCommandTextAreanow report focus and blur as focus moves instead of a frame later, so a consumeronFocusruns before a change made in the same press rather than undoing what that change did.
Patch Changes
-
#1445
8e8432cfThanks @tenphi! -Badgewiththeme="disabled"now keeps its label legible in the dark scheme. Its fill turns light there while the label stayed white (3.59:1); the label now follows the scheme (4.55:1 in dark, unchanged in light). -
#1441
f4697301Thanks @tenphi! - React Compiler now optimizesButtonSplit,CommandMenu,Panel,Layout.Container,Layout.Content,Layout.Pane, the layout provider, the notification stack andusePersistentNotifications. They used to skip compilation because their manualuseMemoanduseCallbackcalls could not be preserved. Manual memoization that the compiler already covers has been removed across the kit.Panelnow applies itsfloatingandflexmodifiers whenisFloatingorisFlexchange after mount; before, the old memo kept the first values.