Repository navigation
Closed
Labels
ionitron: needs reproductiona code reproduction is needed from the issue authorpackage: react@ionic/react package
Description
Bug Report
Ionic version:
[x] 4.x
Current behavior:
- I navigate from master view to detail view
- I navigate from detail view to master view by sliding my thumb from the left side of my device to the right (I don't use the back button)
- I see the master view rendered on the detail view halfway through the animation
Expected behavior:
- I navigate from master view to detail view
- I navigate from detail view to master view by sliding my thumb from the left side of my device to the right (I don't use the back button)
- I see the detail view sliding out of the screen and the master view sliding onto the screen
Steps to reproduce:
Related code:
App.tsx
import React from 'react';
import { Redirect, Route } from 'react-router-dom';
import { IonApp, IonRouterOutlet } from '@ionic/react';
import { IonReactRouter } from '@ionic/react-router';
import Home, { DetailPage } from './pages/Home';
/* Core CSS required for Ionic components to work properly */
import '@ionic/react/css/core.css';
/* Basic CSS for apps built with Ionic */
import '@ionic/react/css/normalize.css';
import '@ionic/react/css/structure.css';
import '@ionic/react/css/typography.css';
/* Optional CSS utils that can be commented out */
import '@ionic/react/css/padding.css';
import '@ionic/react/css/float-elements.css';
import '@ionic/react/css/text-alignment.css';
import '@ionic/react/css/text-transformation.css';
import '@ionic/react/css/flex-utils.css';
import '@ionic/react/css/display.css';
/* Theme variables */
import './theme/variables.css';
const App: React.FC = () => (
<IonApp>
<IonReactRouter>
<IonRouterOutlet>
<Route path="/home" render={() => <Home />} exact={true} />
<Route path="/home/detailpage" component={DetailPage} exact={true} />
<Route exact path="/" render={() => <Redirect to="/home" />} />
</IonRouterOutlet>
</IonReactRouter>
</IonApp>
);
export default App;
Home.tsx
import {
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar,
IonButtons,
IonImg,
IonThumbnail,
IonList,
IonItem,
IonLabel,
IonBackButton
} from '@ionic/react';
import React from 'react';
const Home: React.FC = () => {
console.log('Home');
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Master</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent className="ion-padding">
<IonList>
<IonItem routerLink="/home/detailpage" routerDirection="forward" detail>
<IonThumbnail slot="start">
<IonImg src="https://via.placeholder.com/80" />
</IonThumbnail>
<IonLabel>Item 1</IonLabel>
</IonItem>
<IonItem routerLink="/home/detailpage" routerDirection="forward" detail>
<IonThumbnail slot="start">
<IonImg src="https://via.placeholder.com/80" />
</IonThumbnail>
<IonLabel>Item 1</IonLabel>
</IonItem>
</IonList>
</IonContent>
</IonPage>
);
};
export const DetailPage: React.FC = () => {
console.log('DetailPage');
return (
<IonPage>
<IonContent>
<IonHeader>
<IonToolbar>
<IonButtons slot="start">
<IonBackButton defaultHref="/home" />
</IonButtons>
<IonTitle>Detail</IonTitle>
</IonToolbar>
</IonHeader>
</IonContent>
</IonPage>
);
};
export default Home;
Other information:
Ionic info:
Ionic:
Ionic CLI : 5.4.15 (C:\Users\orhan\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/react 4.11.8
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v13.6.0 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10
Videos with the bug
https://1drv.ms/v/s!Ar4rl_YphkxLvC8d4E7HZq-Ielo4
https://1drv.ms/v/s!Ar4rl_YphkxLvDBllMHCjK3aBl9M
Reacted by Robin Jakobsson
Metadata
Metadata
Assignees
Labels
ionitron: needs reproductiona code reproduction is needed from the issue authorpackage: react@ionic/react package
Type
Fields
No fields configured for issues without a type.
Activity
[-]bug: [/-][+]bug: Master view rendered on detail view[/+]emindeniz99 commentedon Aug 4, 2020
This issue continues
"@ionic/react": "^5.3.1"ionitron-bot commentedon Oct 1, 2020
Thanks for the issue! This issue has been labeled as
needs reproduction. This label is added to issues that need a code reproduction.Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
For a guide on how to create a good reproduction, see our Contributing Guide.
liamdebeasi commentedon Oct 20, 2020
Thanks for the issue! This issue is being closed due to the lack of a code reproduction. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Thank you for using Ionic!