jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.71k stars 2.77k forks source link

Formik Documentation two active links highlighted at once #3854

Open Rajan03 opened 11 months ago

Rajan03 commented 11 months ago

Bug report

Current Behavior

Currently, when we go to Formik Page or FieldArray Page two different links were selected at once

Screenshot 2023-08-01 at 1 17 51 PM

Expected behavior

Expected to select only /fieldArray route when i am at /fieldarray path similarly for formik only /formik should be selected when i am at /formik path

Reproducible example

Go to Formik page to view current behaviour Go to FieldArray page to view current behaviour

Suggested solution(s)

In SidebarRoutes Component in [...slug].tsx replace slug.startsWith(pathname as any); by matching exact route

PS: I would like to fix this issue

vennilamahalingam commented 11 months ago

I am willing to work on this issue !