From b3ddc4ce68cddeb783f8f98159d16937b30c5e47 Mon Sep 17 00:00:00 2001 From: Afiq Hamzah Date: Tue, 24 Sep 2024 16:56:23 +0800 Subject: [PATCH] Make other calculation reactive whenever theres a change --- resources/views/includes/bayaran/pembayaransag.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/includes/bayaran/pembayaransag.blade.php b/resources/views/includes/bayaran/pembayaransag.blade.php index 9c999d3..d125649 100644 --- a/resources/views/includes/bayaran/pembayaransag.blade.php +++ b/resources/views/includes/bayaran/pembayaransag.blade.php @@ -497,6 +497,9 @@ roundedValue = Math.round(roundedValue); roundedValue = roundedValue / 10; input.value = roundedValue.toFixed(2); + + input.dispatchEvent(new Event('change', { bubbles: true })); + calculateall(null, null); } }, 1500); // 1500ms delay });