Skip to content

Commit 5676665

Browse files
committed
Fix plotly#2
1 parent 67d1bec commit 5676665

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
55
## Unreleased
66

77
### Fixed
8+
9+
- [#2087](https://github.com/plotly/dash/pull/2087) Fix bug [#2086](https://github.com/plotly/dash/issues/2086) in which using id as a key within a component's id breaks the new callback context's args_grouping function.
810
- [#2084](https://github.com/plotly/dash/pull/2084) In dash 2.5.0, a default viewport meta tag was added as recommended for mobile-optimized sites by [mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag)
911
This feature can be disabled by providing an empty viewport meta tag. e.g. `app = Dash(meta_tags=[{"name": "viewport"}])`
1012

dash/_callback_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def display(btn1, btn2):
152152
grouping = getattr(flask.g, "args_grouping", {})
153153

154154
def update_args_grouping(g):
155-
if isinstance(g, dict) and isinstance(g.get("id"), dict):
155+
if isinstance(g, dict) and "id" in g and "property" in g:
156156
str_id = stringify_id(g["id"])
157157
prop_id = f"{str_id}.{g['property']}"
158158

0 commit comments

Comments
 (0)