-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Description
When a user configures static IP settings in the DiscoverySourceSetupModal and triggers validation errors, then switches back to DHCP mode, the validation error flags remain set. This keeps the submit button disabled even though the static IP fields are hidden in DHCP mode.
Steps to Reproduce
- Open the Add Environment modal
- Select "Static IP configuration"
- Leave static IP fields empty or enter invalid values to trigger validation errors
- Switch back to "DHCP" mode
- Observe that the submit button remains disabled
Expected Behavior
When switching from static IP to DHCP mode, the form should clear any static-IP related validation errors and field values, allowing the user to submit the form.
Location
- File:
src/pages/environment/sources-table/empty-state/DiscoverySourceSetupModal.tsx - Lines: around 695-710
References
- Pull Request: ECOPROJECT-3824 | refactor: Update ESLint, Prettier and other configurations #355
- Review Comment: ECOPROJECT-3824 | refactor: Update ESLint, Prettier and other configurations #355 (comment)
- Requested by: @jkilzi
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels