File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
app/(private)/emergency-evacuation-applications Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,6 @@ const Page = (): JSX.Element => {
258
258
setReferenceNumberInput ( e . target . value )
259
259
debouncedHandleInputFilterChange ( 'referenceNumber' , e . target . value )
260
260
} }
261
- type = "number"
262
- hideNumberSpinner
263
261
/>
264
262
< FilterInput
265
263
id = "sourceCity"
Original file line number Diff line number Diff line change @@ -53,12 +53,8 @@ const FilterInput: React.FC<FilterInputProps> = memo(
53
53
}
54
54
}
55
55
56
- if ( id === 'referenceNumber' && type === 'number' ) {
57
- const numValue = parseInt ( newValue , 10 )
58
- if (
59
- newValue &&
60
- ( isNaN ( numValue ) || numValue < 0 || numValue > 9999999999 )
61
- ) {
56
+ if ( id === 'referenceNumber' ) {
57
+ if ( ! / ^ \d * $ / . test ( newValue ) || newValue . length > 10 ) {
62
58
return
63
59
}
64
60
}
You can’t perform that action at this time.
0 commit comments