-
Notifications
You must be signed in to change notification settings - Fork 19
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
Formio modal bug fix #2161
Conversation
@@ -6,6 +6,10 @@ const ScrollToTop = () => { | |||
|
|||
useEffect(() => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. |
} | ||
}, [pathname]); | ||
|
||
return null; |
There was a problem hiding this comment.
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?
* Add formio modal checker * update formioModalListener
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).