dev
Aji Kamaludin 1 year ago
parent ea7708456b
commit 643c56e3f9
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -43,7 +43,7 @@ class PWAController extends Controller
"start_url" => '/?direct=1', "start_url" => '/?direct=1',
"id" => 'id.ajikamaludin.voucher', "id" => 'id.ajikamaludin.voucher',
"scope" => ".", "scope" => ".",
"display" => "fullscreen", "display" => "standalone",
"background_color" => "#0940c4", "background_color" => "#0940c4",
"theme_color" => "#db1f1f", "theme_color" => "#db1f1f",
"description" => "Aplikasi Voucher WiFi", "description" => "Aplikasi Voucher WiFi",

@ -5,7 +5,7 @@ import { toFixed } from '@/utils'
import { isEmpty } from 'lodash' import { isEmpty } from 'lodash'
const InputNum = (props) => { const InputNum = (props) => {
return <Input {...props} pattern="\d*" textSize="text-xl" /> return <Input {...props} textSize="text-xl" inputMode="decimal" />
} }
export default function FormInputNumericWith({ export default function FormInputNumericWith({
@ -43,8 +43,8 @@ export default function FormInputNumericWith({
<NumericFormat <NumericFormat
id={labelId} id={labelId}
max={max} max={max}
inputMode="decimal"
pattern="\d*" pattern="\d*"
inputMode="decimal"
thousandSeparator="." thousandSeparator="."
decimalSeparator="," decimalSeparator=","
allowNegative={false} allowNegative={false}

@ -3,6 +3,7 @@ import React from 'react'
export default function Input({ export default function Input({
id = '', id = '',
type = 'text', type = 'text',
inputMode = 'text',
name, name,
onChange, onChange,
value, value,
@ -35,6 +36,7 @@ export default function Input({
disabled={disabled} disabled={disabled}
readOnly={readOnly} readOnly={readOnly}
onKeyDownCapture={onKeyDownCapture} onKeyDownCapture={onKeyDownCapture}
inputMode={inputMode}
/> />
{error && ( {error && (
<p className="mb-2 text-sm text-red-600 dark:text-red-500"> <p className="mb-2 text-sm text-red-600 dark:text-red-500">

Loading…
Cancel
Save