From 782abd84b162d3198dc971d4598322f34be87517 Mon Sep 17 00:00:00 2001 From: Dom Harrington Date: Fri, 30 Aug 2019 13:33:09 -0700 Subject: [PATCH] Add href attribute to tags used for switching code tabs This fixes an issue when navigating to /reference on a project and switching code tabs, which makes the page do a full refresh. No idea why, lets see if this fixes it on a PR app. --- packages/api-explorer/src/block-types/Code.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/api-explorer/src/block-types/Code.jsx b/packages/api-explorer/src/block-types/Code.jsx index 2245699ca..bb1c86434 100644 --- a/packages/api-explorer/src/block-types/Code.jsx +++ b/packages/api-explorer/src/block-types/Code.jsx @@ -28,10 +28,11 @@ class BlockCode extends React.Component { {(!opts.hideHeaderOnOne || codes.length > 1) && (