diff --git a/CHANGELOG.md b/CHANGELOG.md index fcb21c01f4..36a87dddcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). [#2003](https://github.com/plotly/dash/issues/2003) in which `dangerously_allow_html=True` + `mathjax=True` works in some cases, and in some cases not. - [#2047](https://github.com/plotly/dash/pull/2047) Fix bug [#1979](https://github.com/plotly/dash/issues/1979) in which `DASH_DEBUG` as enviroment variable gets ignored. +- [#2062](https://github.com/plotly/dash/pull/2062) Fix bug [#1933](https://github.com/plotly/dash/issues/1933) in which callbacks added via `dash.callback` in AIO components could not be tested using the `dash_duo` object. ### Changed diff --git a/dash/dash.py b/dash/dash.py index dcb873f5b8..1e52ce1309 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -1400,10 +1400,9 @@ def _setup_server(self): "assigned with `app.callback`." ) - self.callback_map[k] = _callback.GLOBAL_CALLBACK_MAP.pop(k) + self.callback_map[k] = _callback.GLOBAL_CALLBACK_MAP[k] self._callback_list.extend(_callback.GLOBAL_CALLBACK_LIST) - _callback.GLOBAL_CALLBACK_LIST.clear() def _add_assets_resource(self, url_path, file_path): res = {"asset_path": url_path, "filepath": file_path}