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

improvement: form in OpenCloseModal #690

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

gidomanders
Copy link
Member

We use the OpenCloseModal for forms, as a submit button is displayed in the footer. There is no possibility however to wrap the modal with a form tag, which causes invalid HTML or could cause unexpected behaviour as the submit button could submit another wrapping form as well.

Changed OpenCloseModal to use custom modal with form in content wrapping body and footer.

Closes #689

We use the OpenCloseModal for forms, as a submit button is displayed in
the footer. There is no possibility however to wrap the modal with a
form tag, which causes invalid HTML or could cause unexpected behaviour
as the submit button could submit another wrapping form as well.

Changed OpenCloseModal to use custom modal with form in content wrapping
body and footer.

Closes #689
@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #690 (2bb4c34) into master (2857813) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #690   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          131       131           
  Lines         2768      2772    +4     
  Branches       815       819    +4     
=========================================
+ Hits          2768      2772    +4     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/core/OpenCloseModal/OpenCloseModal.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JoelDuurkoop
Copy link
Contributor

Story voor openCloseModal basic redirect als enigste modal voor mij naar http://localhost:3001/iframe.html?
Lijkt niet te gebeuren op https://42bv.github.io/ui/storybook/?path=/docs/core-openclosemodal--basic

@gidomanders gidomanders merged commit 1b0d7e0 into master Apr 20, 2023
@gidomanders gidomanders deleted the improvement/form-in-openclosemodal branch April 20, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenCloseModal and forms
2 participants