From cd574dd12ab464b48acd2a214db528f335c80400 Mon Sep 17 00:00:00 2001 From: perco12 <141269770+perco12@users.noreply.github.com> Date: Tue, 26 Sep 2023 09:47:50 -0500 Subject: [PATCH] feat: updated input on calculator for better accessibility (#985) --- src/components/modal/v2/parts/Calculator.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/modal/v2/parts/Calculator.jsx b/src/components/modal/v2/parts/Calculator.jsx index 438dcad3a9..2d4daa5a6c 100644 --- a/src/components/modal/v2/parts/Calculator.jsx +++ b/src/components/modal/v2/parts/Calculator.jsx @@ -183,10 +183,11 @@ const Calculator = ({ setExpandedState, calculator, aprDisclaimer }) => { aria-required="true" className={`input ${displayValue === '' && country === 'US' ? 'empty-input' : ''}`} placeholder={currencyFormat(inputPlaceholder).replace(/(\s?€)/g, '')} - type="tel" + type="text" value={displayValue} onInput={onInput} onKeyDown={onKeyDown} + inputmode="tel" />
{renderError(error || emptyState || isLoading)}