- Add onFormError callback to show toast when validation fails - This helps debug why the save button appears to do nothing
Bypass potential React portal form resolution issues by calling react-hook-form handleSubmit(onFormSubmit)() directly in the button onClick handler.
- Replace form attribute with ref-based form submission to avoid potential portal-related form resolution issues in base-ui Dialog - Add null guard for fetchUsersAll return value to prevent crash when API returns null data