docsify-tabs icon indicating copy to clipboard operation
docsify-tabs copied to clipboard

Tabs unselected when changing pages

Open AntoineB9 opened this issue 2 years ago • 1 comments

Hello,

First of all, thanks for everything you've done for Docsify !!

I recently updated "Docsify-tabs" from v1.4.4 to v1.6.0 and encountered an issue. I have a two tabs set-up on a page that appears selected with the class "docsify-tabs__tab docsify-tabs__tab--active", but when browsing to another page and coming back, both tabs appears unselected (class "docsify-tabs__content"). Would anyone have any general idea that could be causing this ?

In case of: I'm using the "vue" theme and running those plugins :

  • Pagescroll
  • Search
  • Zoom_image
  • Alerts
  • Tabs
  • Copycode
  • Toc

I will continue to look into this issue and will update if I find anything.

Thanks :)

AntoineB9 avatar Dec 16 '22 16:12 AntoineB9

Same issue here, with different theme, so this looks like a more general issue.

thediveo avatar Jul 29 '23 17:07 thediveo

Unable to reproduce this issue. If this is still an issue, let me know and we can investigate further.

jhildenbiddle avatar Feb 15 '24 22:02 jhildenbiddle

Firefox/Fennec on Android.

Navigate to https://edgeshark.siemens.io/#/getting-started, there are two tab sets on the page. Change one of the two sets to display a different tab. Hit Refresh. Now both tab sets have lost their active tabs.

thediveo avatar Feb 15 '24 22:02 thediveo

Thanks, @thediveo. Issue confirmed. I'll fork the repo and dive into the /docs directory as soon as I can.

jhildenbiddle avatar Feb 16 '24 01:02 jhildenbiddle

Fixed in v1.6.2.

jhildenbiddle avatar Feb 29 '24 23:02 jhildenbiddle

Yes, works also for me (for the moment we need to force using v1.6.2 explicitly, it's a pain that jsdelivr doesn't support minimum versions within the range inside a major)

thediveo avatar Mar 01 '24 12:03 thediveo

@thediveo --

I did a bit of research and discovered that jsdelivr has a CDN cache purge API and web interface:

  • API: https://www.jsdelivr.com/documentation#id-purge-cache
  • Web: https://www.jsdelivr.com/tools/purge

I was unaware of this until today, but I will make a point of purging the CDN cache after each new release. I went ahead and did this for the @latest, @1, and @1.6 docsify-tabs URL aliases, so you should be able to revet back to the @1 aliases and load the latest version.

jhildenbiddle avatar Mar 01 '24 14:03 jhildenbiddle