battleaxedotco / brutalism

Battleaxe's component library for Adobe CEP panels
https://battleaxe.dev/brutalism-docs/
MIT License
88 stars 12 forks source link

Tabs do not obey browser forward/back #1

Open Inventsable opened 4 years ago

Inventsable commented 4 years ago

Leaving this here so I don't forget to fix it. To recreate, open the API and click on a few tabs. Notice that when you press browser forward/back, the routes obey this and you navigate between routes but the active Tab never changes.

Should fix with a watch prop on the current route and some regex detection -- shouldn't rely on path alone in case complex route parameters or nested routes are being used.