From 9c2c31e7ff926491ad6260e56cf52fe42d94f106 Mon Sep 17 00:00:00 2001 From: Peter Pal Hudak Date: Thu, 28 Sep 2023 18:11:38 +0200 Subject: [PATCH] fix(ui-drilldown): call onBackButtonClicked function when ArrowLeft got pressed Closes: INSTUI-3870 --- packages/ui-drilldown/src/Drilldown/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-drilldown/src/Drilldown/index.tsx b/packages/ui-drilldown/src/Drilldown/index.tsx index 2fb4cee600..f5429ed459 100644 --- a/packages/ui-drilldown/src/Drilldown/index.tsx +++ b/packages/ui-drilldown/src/Drilldown/index.tsx @@ -876,7 +876,7 @@ class Drilldown extends Component { if (event.key === 'ArrowLeft') { // if it is possible, we go a level up in the history if (this._pageHistory.length > 1) { - this.goToPreviousPage() + this.handleBackButtonClick() } // if on root page and popover is open, we close it