joystick icon indicating copy to clipboard operation
joystick copied to clipboard

Form "require" validation

Open 4rokis opened this issue 2 years ago • 1 comments

These form validation rules should behave the same.

const booleanValue = false
 'expire-at': {
    ...(booleanValue ? { required: true } : {}))
  },

and

const booleanValue = false
 'expire-at': {
    required: booleanValue
  },

Expected: Based on the "booleanValue" the tested field gonna be required.

Actual Regardless of the "booleanValue", if the required is set it will validate as "required"

4rokis avatar May 02 '23 04:05 4rokis

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 02 '25 02:10 github-actions[bot]

This PR was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Oct 07 '25 02:10 github-actions[bot]