File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 8.1.0 IN PROGRESS
4
4
5
+ * Ignore the dirty-form prompt when navigating to a logout location. STRIPESFF-35.
6
+
7
+ ## [ 8.0.1] ( https://github.com/folio-org/stripes-final-form/tree/v8.0.1 ) (2024-03-13)
8
+ [ Full Changelog] ( https://github.com/folio-org/stripes-final-form/compare/v8.0.0...v8.0.1 )
9
+
10
+ * Update translations
11
+
5
12
## [ 8.0.0] ( https://github.com/folio-org/stripes-final-form/tree/v8.0.0 ) (2023-10-11)
6
13
[ Full Changelog] ( https://github.com/folio-org/stripes-final-form/compare/v7.0.0...v8.0.0 )
7
14
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ class StripesFinalFormWrapper extends Component {
31
31
32
32
if ( navigationCheck ) {
33
33
this . unblock = history . block ( nextLocation => {
34
+ // STRIPESFF-35 / STFORM-42 require the nav-prompt to be ignored
35
+ // on logout. consider calling a common function if this ever needs
36
+ // to be more elaborate; until then, admire this dead-simple impl.
37
+ if ( nextLocation . pathname . startsWith ( '/logout' ) ) {
38
+ return true ;
39
+ }
40
+
34
41
const {
35
42
dirty,
36
43
submitSucceeded,
You can’t perform that action at this time.
0 commit comments