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

Using custom confirmation modals #4798

Open
robinmolen opened this issue Oct 28, 2024 · 0 comments · May be fixed by #4814
Open

Using custom confirmation modals #4798

robinmolen opened this issue Oct 28, 2024 · 0 comments · May be fixed by #4814
Assignees

Comments

@robinmolen
Copy link
Contributor

Thema / Theme

Frontend

Omschrijving / Description

Replacing the window.confirm(...) confirmations with a custom confirmation that uses our Modal component

Added value / Toegevoegde waarde

No response

Aanvullende opmerkingen / Additional context

No response

@robinmolen robinmolen self-assigned this Oct 28, 2024
@robinmolen robinmolen moved this from Todo to In Progress in Development Oct 29, 2024
robinmolen added a commit that referenced this issue Oct 29, 2024
robinmolen added a commit that referenced this issue Nov 8, 2024
For this to work we need to use the React Select without Formik. The Formik React Select doesn't handle the custom onChange correctly, causing a setValue loop.
@robinmolen robinmolen linked a pull request Nov 8, 2024 that will close this issue
9 tasks
@robinmolen robinmolen linked a pull request Nov 8, 2024 that will close this issue
9 tasks
robinmolen added a commit that referenced this issue Nov 8, 2024
For this to work we need to use the React Select without Formik. The Formik React Select doesn't handle the custom onChange correctly, causing a setValue loop.
robinmolen added a commit that referenced this issue Nov 11, 2024
For this to work we need to use the React Select without Formik. The Formik React Select doesn't handle the custom onChange correctly, causing a setValue loop.
robinmolen added a commit that referenced this issue Nov 11, 2024
For this to work we need to use the React Select without Formik. The Formik React Select doesn't handle the custom onChange correctly, causing a setValue loop.
robinmolen added a commit that referenced this issue Nov 12, 2024
Replaced window dialog handling with new dialog react modal handling
robinmolen added a commit that referenced this issue Nov 12, 2024
For this to work we need to use the React Select without Formik. The Formik React Select doesn't handle the custom onChange correctly, causing a setValue loop.
robinmolen added a commit that referenced this issue Nov 12, 2024
Replaced window dialog handling with new dialog react modal handling
robinmolen added a commit that referenced this issue Nov 14, 2024
Rendering a component inside a hook has some serious performance impacts. To prevent this, the useConfirm now returns the needed props and a reference to the confirmationModal component.

For more info: #4814 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Implemented
Development

Successfully merging a pull request may close this issue.

1 participant