diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
index e56341d80..a1d19e257 100644
--- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
+++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx
@@ -307,11 +307,18 @@ function createOpenSynapseLinkDialogButton(container: Explorer): CommandButtonCo
function createNewDatabase(container: Explorer): CommandButtonComponentProps {
const label = "New " + getDatabaseName();
+ const newDatabaseButton = document.activeElement as HTMLElement;
+
return {
iconSrc: AddDatabaseIcon,
iconAlt: label,
onCommandClick: () =>
- useSidePanel.getState().openSidePanel("New " + getDatabaseName(), ),
+ useSidePanel
+ .getState()
+ .openSidePanel(
+ "New " + getDatabaseName(),
+
+ ),
commandButtonLabel: label,
ariaLabel: label,
hasPopup: true,