ionic-team / ionic-team/ionic-framework

bug: Ionic React restores scroll position when navigating forward from /foo/0 to /foo/1

Ouverte
#20,816 16 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
package: react type: bug
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

# Bug Report

**Ionic version:**
[x] 5.x

**Current behavior:**
when the user wants to go to another news on a news detail page, he reaches the news that he clicked on the news link, but because the user's location is at the bottom of the page, he has to go up when he wants to see the news

**Expected behavior:**
I think it should go up automatically every time a link is clicked in the backhend

**Steps to reproduce:**

**Related code:**

<>
{
newsdetails.length===0? this.getNews} message={"Haber yükleniyor"} duration={5000}/> :


{newsdetails.map(newdetail =>

{newdetail.id}


{newdetail.__comment_count} Yorumla
Paylaş

{newdetail.title}


{newdetail.short_content}


{newdetail.date}




)}

}
{
categorys.length===0 ? :



AYNI KATAGORİDEN HABERLER



    {categorys.map(category =>



  • {category.id}

    {category.title}


  • )}


}

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.