Mgt Person card used in fluent UI list view auto selects the row when personcard is expanded

80 Views Asked by At

we are using Mgt-react based Personcard in fluentUI Listview. The Listview is enabled to use multliselect. Need to avoid auto selection of row when we expand personcard. we are rendering the below component in fluentUI listview as a column

  <div className="personprofile" onMouseDown={(event)=>{event.preventDefault()}}>
  <Person
    userId={id}
    personCardInteraction={PersonCardInteraction.hover}
    fallbackDetails = {personDetails}
  >
    <CustomPersonCard template="person-card" />
  </Person>
</div>
1

There are 1 best solutions below

1
umgolla On
<div className="personprofile" onMouseDown={(event) => { event.preventDefault() }}>
  <Person
    userId={id}
    personCardInteraction={PersonCardInteraction.hover}
    fallbackDetails = {personDetails}
    onClick={(event)=>{event.preventDefault()}}
  >
    <CustomPersonCard template="person-card" />
  </Person>
</div>