You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using `Popover` and `Menu` with `bindHover`](#using-popover-and-menu-with-bindhover)
@@ -278,14 +278,17 @@ popup is a `Popper`.
278
278
Right now this only affects whether `bindTrigger`/`bindToggle`/`bindHover` return
279
279
an `aria-controls` prop or an `aria-describedby` prop.
280
280
281
-
### `popupId` (`string`, **optional** but strongly encouraged)
281
+
### `popupId` (`string`, **optional**)
282
282
283
283
The `id` for the popup component. It will be passed to the child props so that
284
284
the trigger component may declare the same id in an ARIA prop.
285
285
286
+
Defaults to `React.useId()` if `React.useId` exists; in older versions of React
287
+
you will have to manually provide a `popupId`.
288
+
286
289
### `disableAutoFocus` (`boolean`, **optional**)
287
290
288
-
If `true`, will not steal focus when the popup is opened. (And `bindPopover`/`bindMenu`) will inject `disableAutoFocus`, `disableEnforceFocus`, and `disableRestoreFocus`).
291
+
If `true`, will not steal focus when the popup is opened. (And `bindPopover`/`bindMenu` will inject `disableAutoFocus`, `disableEnforceFocus`, and `disableRestoreFocus`).
289
292
290
293
Defaults to `true` when the popup is opened by the `bindHover` or `bindFocus` element.
291
294
@@ -553,14 +556,17 @@ popup is a `Popper`.
553
556
Right now this only affects whether `bindTrigger`/`bindToggle`/`bindHover` return
554
557
an `aria-controls` prop or an `aria-describedby` prop.
555
558
556
-
### `popupId` (`string`, **optional** but strongly encouraged)
559
+
### `popupId` (`string`, **optional**)
557
560
558
561
The `id` for the popup component. It will be passed to the child props so that
559
562
the trigger component may declare the same id in an ARIA prop.
560
563
564
+
Defaults to `React.useId()` if `React.useId` exists; in older versions of React
565
+
you will have to manually provide a `popupId`.
566
+
561
567
### `disableAutoFocus` (`boolean`, **optional**)
562
568
563
-
If `true`, will not steal focus when the popup is opened. (And `bindPopover`/`bindMenu`) will inject `disableAutoFocus`, `disableEnforceFocus`, and `disableRestoreFocus`).
569
+
If `true`, will not steal focus when the popup is opened. (And `bindPopover`/`bindMenu` will inject `disableAutoFocus`, `disableEnforceFocus`, and `disableRestoreFocus`).
564
570
565
571
Defaults to `true` when the popup is opened by the `bindHover` or `bindFocus` element.
0 commit comments