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

Formio modal bug fix #2161

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Formio modal bug fix #2161

merged 2 commits into from
Sep 13, 2023

Conversation

djnunez-aot
Copy link
Collaborator

@djnunez-aot djnunez-aot commented Sep 11, 2023

Issue #: #1327
-Add a listener that unrenders the formio modal on switching routes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@@ -6,6 +6,10 @@ const ScrollToTop = () => {

useEffect(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, can we please have it in its own separate component though. We can name it something relevant and specific to Formio. FormioModalListener... maybe

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure ill do that now

Copy link
Collaborator

@jadmsaadaot jadmsaadaot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do change in separate Formio specific component.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Merging #2161 (1a1a26d) into main (45cb2fb) will decrease coverage by 0.02%.
Report is 9 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2161      +/-   ##
==========================================
- Coverage   68.95%   68.94%   -0.02%     
==========================================
  Files         466      466              
  Lines       15039    15046       +7     
  Branches     1177     1184       +7     
==========================================
+ Hits        10370    10373       +3     
- Misses       4468     4472       +4     
  Partials      201      201              
Flag Coverage Δ
metweb 61.43% <ø> (-0.02%) ⬇️

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

see 4 files with indirect coverage changes

}
}, [pathname]);

return null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the return null? Is it needed?

@djnunez-aot djnunez-aot merged commit 2b89a3d into bcgov:main Sep 13, 2023
NatSquared pushed a commit that referenced this pull request Oct 19, 2023
* Add formio modal checker

* update formioModalListener
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.

3 participants