We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65951d7 commit b20ab39Copy full SHA for b20ab39
src/private/util.js
@@ -82,8 +82,9 @@ const getLoadingState = () => {
82
// vendored from dcc.Loading
83
const loadingSelector = (componentPath, targetComponents) => state => {
84
let stringPath = JSON.stringify(componentPath);
85
- // Remove the last ] for easy match
86
- stringPath = stringPath.substring(0, stringPath.length - 1);
+ // Remove the last ] for easy match and add `,` to make sure only children
+ // trigger the loading. See issue: https://github.com/plotly/dash/issues/3276
87
+ stringPath = stringPath.substring(0, stringPath.length - 1) + ',';
88
const loadingChildren = toPairs(state.loading).reduce((acc, [path, load]) => {
89
if (path.startsWith(stringPath) && load.length) {
90
if (
0 commit comments