From 88b99965f8d928e169cfc22745ec8bf20639de9f Mon Sep 17 00:00:00 2001 From: Marc Skov Madsen Date: Tue, 27 Jul 2021 09:34:09 +0200 Subject: [PATCH] Reset Models/ Components when resetting layout (#2576) --- panel/template/fast/grid/fast_grid_template.html | 1 + panel/template/react/react.html | 1 + 2 files changed, 2 insertions(+) diff --git a/panel/template/fast/grid/fast_grid_template.html b/panel/template/fast/grid/fast_grid_template.html index b8f93b0a54..e859690eeb 100644 --- a/panel/template/fast/grid/fast_grid_template.html +++ b/panel/template/fast/grid/fast_grid_template.html @@ -392,6 +392,7 @@ this.setState({ layouts: {{ layouts }} }); + window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search; } onLayoutChange(layout, layouts) { diff --git a/panel/template/react/react.html b/panel/template/react/react.html index 5f62271e2c..63f68b5515 100644 --- a/panel/template/react/react.html +++ b/panel/template/react/react.html @@ -213,6 +213,7 @@ this.setState({ layouts: {{ layouts }} }); + window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search; } onLayoutChange(layout, layouts)