Merged in feat/LOY-522-move-focus-to-newly-loaded-item (pull request #3452)
feat(LOY-522): Move focus to the newly loaded stay in sidepeek for upcoming and previous stay * feat(LOY-522): Moved focus to the newly loaded stay in sidepeek for upcoming and previous stay Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -18,6 +18,7 @@ interface SidePeekSelfControlledProps extends React.PropsWithChildren {
|
||||
title: string
|
||||
isOpen: boolean
|
||||
onClose: () => void
|
||||
sidePeekSEO?: boolean
|
||||
}
|
||||
|
||||
export default function SidePeekSelfControlled({
|
||||
@@ -25,6 +26,7 @@ export default function SidePeekSelfControlled({
|
||||
isOpen,
|
||||
onClose,
|
||||
title,
|
||||
sidePeekSEO = true,
|
||||
}: SidePeekSelfControlledProps) {
|
||||
const intl = useIntl()
|
||||
|
||||
@@ -81,8 +83,7 @@ export default function SidePeekSelfControlled({
|
||||
</Dialog>
|
||||
</Modal>
|
||||
</ModalOverlay>
|
||||
|
||||
<SidePeekSEO title={title}>{children}</SidePeekSEO>
|
||||
{sidePeekSEO && <SidePeekSEO title={title}>{children}</SidePeekSEO>}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user