#3968·dash

[BUG] ctx.triggered_id is not recognized as a dict

Author: ProfessorOwlCreated Sep 1, 2026Updated Sep 2, 2026
LabelsP3tasksize: 1

Describe your context Please provide us your environment, so we can easily reproduce the issue.

dash                      4.4.1
dash_ag_grid              35.3.0
dash-extensions           2.0.6
dash-iconify              0.1.2
dash_mantine_components   2.8.0

Describe the bug

I am defining multiple dynamic components and set their id like this:

python
id={"type": "entry", "index": id},

where the value of "index" gets changed depending on the component. Now, when I want to use the id in a pattern-matching callback, I need to get the value of "index"to search a sqlite database. When I use

python
ctx.triggered_id.get("index"))

however, VS Code produces an error and says: ""get" is no known attribute of "None"". The call however correctly returns the value of "index"

The same problem happens with ctx.triggered_id["index"], although the error then says: "None" object is not subscriptable.

FYI: I translated the error messages from German to English. They could be slightly inaccurate, though their meaning should be correct

Expected behavior

I would expect it to see a dict as a possible type of triggered_id, so that there is no error shown.