Skip to content

Commit 2f59da5

Browse files
authored
docs(Toolbar - compat): outline React19 StrictMode limitations (#7544)
1 parent 45eeb1d commit 2f59da5

File tree

1 file changed

+2
-0
lines changed
  • packages/compat/src/components/Toolbar

1 file changed

+2
-0
lines changed

packages/compat/src/components/Toolbar/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ const OVERFLOW_BUTTON_WIDTH = 36 + 8 + 8; // width + padding end + spacing start
141141
* __Note:__ The overflow popover is mounted only when the overflow button is displayed, i.e., any child component of the popover will be remounted, when moved into it.
142142
*
143143
* __Note:__ To prevent duplicate child `id`s in the DOM, all child `id`s get an `-overflow` suffix. This is especially important when popovers are opened by id.
144+
*
145+
* __Note:__ When using React 19 with `StrictMode` enabled, overflow behavior may not work reliably. This only affects development mode, as `StrictMode` is not applied in production.
144146
*/
145147
const Toolbar = forwardRef<HTMLDivElement, ToolbarPropTypes>((props, ref) => {
146148
const {

0 commit comments

Comments
 (0)