Skip to content

Live Persona control: exclude links? #2065

@Ack-BartS

Description

@Ack-BartS

Category

[ ] Enhancement
[ ] Bug
[X] Question

Version

spfx 1.21.1
"@pnp/sp": "4.16.0",
"@pnp/spfx-controls-react": "3.22.0"
"typescript": "~5.3.3"
Node.js 22.17.0

Question

TLDR: Can the LivePersona control be configured to exclude link elements? (<a> / <Link>)

We are currently using a <div> with multiple children as template prop for the LivePersona control. Some of these children are Link from '@fluentui/react' components, with the attribute target="_blank". When clicking them, a new browser tab with the intended target opens, as well as the Live Persona Card on the original tab. Is it possible to prevent the latter? (Other than to exclude the Link from the template.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions