drodil / backstage-plugin-qeta

Backstage.io plugin for Q&A
https://www.npmjs.com/package/@drodil/backstage-plugin-qeta
MIT License
81 stars 25 forks source link

feat: searching resets the page #113

Closed rcelebrone closed 8 months ago

rcelebrone commented 8 months ago

What

solves issue https://github.com/drodil/backstage-plugin-qeta/issues/112 by reset page parameter like when we filter something

How

I used the same function used in filters onPageChange(1)

Prints & Tests

I've created 6 questions and I moved to page 2 Screenshot from 2024-01-07 17-25-51

Then I have search for "teste 5" (and now the page returned to page 1) Screenshot from 2024-01-07 17-25-28