Exampel of Collecting role information on Dismiss shows wrong logs

The example under “Collecting role information on Dismiss” is not working. Instead of showing different logs, console logs only

{
  "role": "backdrop"
}

data is passed as undefined.

I just ran the React example in StackBlitz and am getting the expected results :thinking:

{
  "data": {
    "action": "delete"
  },
  "role": "destructive"
}
{
  "data": {
    "action": "cancel"
  },
  "role": "cancel"
}
{
  "data": {
    "action": "share"
  }
}
{
  "role": "backdrop"
}