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',
"id" => 'id.ajikamaludin.voucher',
"scope" => ".",
"display" => "fullscreen",
"display" => "standalone",
"background_color" => "#0940c4",
"theme_color" => "#db1f1f",
"description" => "Aplikasi Voucher WiFi",

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

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

Loading…
Cancel
Save