From b33d0c67d15938b77de7c9b9b17c8ee0164f0262 Mon Sep 17 00:00:00 2001 From: Christoph Massmann Date: Mon, 25 Mar 2024 10:51:07 +0100 Subject: [PATCH] fixed issue with settings button --- README.md | 3 +-- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1a7e75..7fc113e 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,7 @@ For more information see also [my blog post](https://dev-investor.de/finanz-apps ## Developing ⚒️ ``` -make dist -make test +make dist && make test ``` The compiled MoneyMoney extension can then be found in `dist/SankeyChart.lua` and installed with `make install`. diff --git a/src/main.ts b/src/main.ts index 709872b..2abf4dc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -118,7 +118,7 @@ ready(function() { if (Math.round(numberOfMonths) == 1) { document.querySelector("form input#isShowMonthlyValues").setAttribute('disabled', 'disabled'); } - document.querySelector("#applySettingsButton").addEventListener('click', () => { setExcludedCategoriesFromSelect(); updateChartData() }); + document.querySelector("#applySettingsButton").addEventListener('click', (event) => { event.preventDefault(); setExcludedCategoriesFromSelect(); updateChartData() }); /** @see https://www.highcharts.com/docs/chart-and-series-types/sankey-diagram */ chart = Highcharts.chart('chart-container', {