framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.06k stars 3.23k forks source link

Sending unexpected http get request when clicking back button on <Nav> react component #4091

Open JaosnHsieh opened 1 year ago

JaosnHsieh commented 1 year ago

Describe the bug

Back button in framework7 <Navbar backLink={'Back'} .../> React component unexpected sending XHR request to HTTP GET /fruits-select which adding by smartselect.

To Reproduce

To reproduce this router related issue:

  1. Click "map" icon and go to Page "A" by clicking A smart select popver
  2. Click back from A
  3. Click "gear_alt" icon to Page B and click again to Page C, click back in C and Click back in B
  4. See console, router unexpected request url "/fruits-select/

Expected behavior

When clicking Back button on Nav, go back to previous page.

Actual Behavior

No page changing, sending HTTP Request to /frutis-select route only.

Screenshots

scrrenshot

JaosnHsieh commented 1 year ago

Is there a way to not push the route to the router history when using smart select popover?