ionic-team / ionic-team/ionic-framework

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

Abierto
#20,816 16 comentarios 1 reacción 0 asignados Ver en GitHub
package: react type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

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


  • )}


}

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.