ionic-team / ionic-team/ionic-framework

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

Aperta
#20,816 16 commenti 1 reazione 0 assegnatari Vedi su GitHub
package: react type: bug
Lingua principale
TypeScript
Stelle
52.7k
Fork
13.3k
Merge medio
1g 15h
PR unite (30g)
51

Descrizione

# 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}


  • )}


}

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.