Skip to content

[CCUBE-2379] add decimal validation for numeric field#602

Merged
weili-govtech merged 5 commits into
mainfrom
CCUBE-2379
May 22, 2026
Merged

[CCUBE-2379] add decimal validation for numeric field#602
weili-govtech merged 5 commits into
mainfrom
CCUBE-2379

Conversation

@zukron-rahmadhan
Copy link
Copy Markdown
Contributor

Changes
Description of changes...

  • delete branch

Changelog entry

  • Add decimal validation for numeric-field

Additional information

  • You may refer to this CCUBE-2379
  • Need to check together with CCUBE-2379 in Validation Schema Generator

@weili-govtech
Copy link
Copy Markdown
Contributor

can we prevent user from entering beyond 2 decimal places if the decimals validation is defined?

Comment thread src/context-providers/yup/helper.ts
Comment thread src/context-providers/yup/types.ts
Comment thread src/stories/3-fields/numeric-field/numeric-field.stories.tsx Outdated
Comment thread src/components/fields/text-field/text-field.tsx Outdated
Comment thread src/__tests__/components/fields/text-field/numeric-field.spec.tsx
@weili-govtech weili-govtech merged commit 395210a into main May 22, 2026
1 check passed
@weili-govtech weili-govtech deleted the CCUBE-2379 branch May 22, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants