Minor Changes
-
#2048: Added a new
defaultValue
prop toComboBox
. This is useful when you don't want to maintain your own state but still want to control the initialvalue
. -
#2076: Added open popover styling to
Button
(andIconButton
). When an associatedPopover
orDropdownMenu
is open, the button will now get a subtle visual indication. -
#2111: Added the ability to pass arbitrary DOM props to
TreeNode
. -
#2107: A new
meta
object is exported, containing meta information about the package.import { meta } from '@itwin/itwinui-react'; console.log(meta.version, meta.module); // 3.12.0, ESM
-
#2048: Fixed a bug in
ComboBox
where the controlled state (value
prop) was not given priority over the uncontrolled state. As a result:- Setting the default value using
value={myDefaultValue}
will no longer work. Instead, use the newdefaultValue
prop. - Resetting the value using
value={null}
will now force the ComboBox to be in controlled mode. If you want to reset the value but be in uncontrolled mode, then usevalue={undefined}
, or better yet, reset the component state using key.
- Setting the default value using
-
#2101: Passing an
IconButton
toTile.QuickAction
andTile.TypeIndicator
is now deprecated. UseTile.IconButton
instead. -
#2021: In menu-like components (
DropdownMenu
,SplitButton
,Table
's column manager), using the mouse to operate the menu will no longer move focus like it does when using the keyboard. -
#2021:
MenuItem
'stabIndex
now is0
when it's selected and-1
when it's not. Additionally,MenuItem
passed inside most menu type components (e.g.DropdownMenu
,SplitButton
,Table
's column manager, etc.) have rovingtabIndex
. -
Dependency changes:
- #2116: Bumped the minimum required version of
@floating-ui/react
to0.26.18
. - #2100: Replaced dependency on
tslib
with@swc/helpers
. This is used mainly by the CommonJS build for interop reasons.
- #2116: Bumped the minimum required version of
Patch Changes
- #2117: Fixed an error in
Select
caused by updating@floating-ui/react
to0.26.18
. - #2101: Fixed a small visual bug in
Tile.IconButton
where the hover state wasn't working. - #2021:
MenuItem
now renders as a<button>
instead of a<div>
. - #2113: Fixed an issue where a portaled
Popover
was sometimes showing up in the wrong window during the first render. - #2048: Fixed a bug in
ComboBox
where theisSelected
passed toitemRenderer
was alwaysfalse
whenevermultiple
wastrue
.
Build Output Changes
- #2102: The build output is now generated using SWC and uses the new JSX transform instead of
React.createElement
. - #2118: Type declarations are now generated using TypeScript 5.5 with
"module": "NodeNext"
. - #2118: The
package.json#exports
fallback for/react-table
types is now handled usingtypesVersions
. - #2100: The build output is now (again) formatted using
prettier
for easier debugging. - #2100: All code comments have been removed from the build output.