From b6d7e47a9222342fda1144eb8f182cf2ef4583bd Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Fri, 11 Oct 2024 16:12:13 +0530 Subject: [PATCH] loan set on input --- blocks/applyloanform/applyloanforms.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/applyloanform/applyloanforms.js b/blocks/applyloanform/applyloanforms.js index bdd4a4388e..f5fc00cd62 100644 --- a/blocks/applyloanform/applyloanforms.js +++ b/blocks/applyloanform/applyloanforms.js @@ -274,8 +274,9 @@ export function applyLoanFormClick() { input.value = event.target.textContent.trim(); if (input.id == 'form-loan-type') { - const { loanType } = event.target.dataset; + const { loanType, loanName } = event.target.dataset; input.dataset.loanType = loanType; + input.dataset.loanName = loanName; stateInput().value = ''; loanProduct().dispatchEvent(new Event('change')); }