documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Default version number and switching version number: weird behavior

Open amsimon opened this issue 3 years ago • 3 comments

Navigating to https://react-hook-form.com , the default version is v5/v6. Shouldn't it be v7? Also, switching the version number doesn't seem to be working properly. Probably related to the redirect issue referenced in this pull request https://github.com/react-hook-form/documentation/pull/843

https://user-images.githubusercontent.com/5640304/195208199-93374463-5418-40ff-9329-cc14d158d019.mov

amsimon avatar Oct 11 '22 22:10 amsimon

you can click on the API page, it should show the correct doc: https://legacy.react-hook-form.com/v6/api

bluebill1049 avatar Oct 12 '22 09:10 bluebill1049

Ok, but the version select is still not behaving correctly.

  • Why does clicking the "V5/V6" button open a new tab with "Version 7" selected?
  • Why does clicking "Version 7" open a dropdown where I can select "Version 6" or "Version 5" but I can't select these versions when I go to https://react-hook-form.com?

amsimon avatar Oct 14 '22 16:10 amsimon

Yes, there is something to be improved here for the transition to the old section. I have tagged enhancement for this issue.

bluebill1049 avatar Oct 15 '22 23:10 bluebill1049