🐛 Fix de la selection de text dans la popover

pull/2077/head
Jérémy Rialland 2022-03-29 13:49:29 +02:00 committed by Johan Girod
parent dbb25fcf3e
commit ae4aaa7fa4
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ export default function Popover(
</CloseButton>
</CloseButtonContainer>
)}
<PopoverContent ref={contentRef}>
{/* tabIndex -1 is for text selection in popover, see https://github.com/adobe/react-spectrum/issues/1604#issuecomment-781574668 */}
<PopoverContent tabIndex={-1} ref={contentRef}>
{title && (
<H2 as="h1" {...titleProps}>
{title}