craftcms / craftcms/cms

[5.x]: Error trying to setup Passkey

Open
#18,603 12 comments 0 reactions 2 assignees View on GitHub

@gcamacho079 is already working on this.

Since Mar 23, 2026.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

I can't setup passkey on my user account

Steps to reproduce
  1. Log in to control panel
  2. Head to your user account
  3. Click on "Add passkey" button
  4. Enter name for key and press OK

At this point a "Type error" toast notification appears. Error in browser console:

[Error] There is no trigger element set for this modal. Set one with modal.$triggerElement = $(...) (anonymous function) (garnish.js:2:95587)

I was using Safari Version 18.6 (20621.3.11.11.3) at the time.

Expected behavior
Actual behavior
Craft CMS version

5.9.17

PHP version

8.4

Operating system and version

Mac

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.