Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default enum value not restored after initial change #4452

Open
4 tasks done
VitalyChe opened this issue Jan 17, 2025 · 1 comment
Open
4 tasks done

Default enum value not restored after initial change #4452

VitalyChe opened this issue Jan 17, 2025 · 1 comment

Comments

@VitalyChe
Copy link

VitalyChe commented Jan 17, 2025

Prerequisites

What theme are you using?

material-ui

Version

5.24.1

Current Behavior

The default value for Dynamic Table is set correctly on the initial rendering only

Monosnap.screencast.2025-01-17.12-08-41.mp4

The playground reference

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Anything else?

No response

@VitalyChe VitalyChe added bug needs triage Initial label given, to be assigned correct labels and assigned labels Jan 17, 2025
@heath-freenome
Copy link
Member

@VitalyChe if you add the mergeDefaultsIntoFormData on the form and set it to useDefaultIfFormDataUndefined then things will work for you.

See this playground for a working example

@heath-freenome heath-freenome added question awaiting response and removed bug needs triage Initial label given, to be assigned correct labels and assigned labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants