File tree 1 file changed +8
-8
lines changed
docs/01-app/04-api-reference/02-components
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1362,11 +1362,11 @@ export function CustomLink({ children, ...props }: CustomLinkProps) {
1362
1362
return (
1363
1363
<Link
1364
1364
onNavigate = { (e ) => {
1365
- if (isBlocked ) {
1365
+ if (
1366
+ isBlocked &&
1367
+ ! window .confirm (' You have unsaved changes. Leave anyway?' )
1368
+ ) {
1366
1369
e .preventDefault ()
1367
- if (! window .confirm (' You have unsaved changes. Leave anyway?' )) {
1368
- e .preventDefault ()
1369
- }
1370
1370
}
1371
1371
}}
1372
1372
{ ... props }
@@ -1389,11 +1389,11 @@ export function CustomLink({ children, ...props }) {
1389
1389
return (
1390
1390
< Link
1391
1391
onNavigate= {(e ) => {
1392
- if (isBlocked) {
1392
+ if (
1393
+ isBlocked &&
1394
+ ! window .confirm (' You have unsaved changes. Leave anyway?' )
1395
+ ) {
1393
1396
e .preventDefault ()
1394
- if (! window .confirm (' You have unsaved changes. Leave anyway?' )) {
1395
- e .preventDefault ()
1396
- }
1397
1397
}
1398
1398
}}
1399
1399
{... props}
You can’t perform that action at this time.
0 commit comments