From 0ce85e325e3716e4b8b725d993389b99df73f928 Mon Sep 17 00:00:00 2001 From: AnnMarieW Date: Thu, 26 Jan 2023 19:38:34 -0700 Subject: [PATCH] added disable_n_clicks to page_container --- CHANGELOG.md | 7 +++++++ dash/dash.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e115cbc2a5..504a132a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to `dash` will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). + +## Unreleased + +## Fixed + +- [#2400](https://github.com/plotly/dash/pull/2400) Added `disable_n_clicks=True` to the `html.Div` components in `page_container`. + ## [2.8.0] - 2023-01-24 ### Added diff --git a/dash/dash.py b/dash/dash.py index 5bc3ddab10..b8746d4d05 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -120,9 +120,9 @@ page_container = html.Div( [ dcc.Location(id=_ID_LOCATION), - html.Div(id=_ID_CONTENT), + html.Div(id=_ID_CONTENT, disable_n_clicks=True), dcc.Store(id=_ID_STORE), - html.Div(id=_ID_DUMMY), + html.Div(id=_ID_DUMMY, disable_n_clicks=True), ] ) except AttributeError: