Skip to content

Commit

Permalink
Focus the code-mirror element as well in case it is the only first
Browse files Browse the repository at this point in the history
element in the dialog.
  • Loading branch information
asheshv committed Sep 17, 2024
1 parent 90bad57 commit 29faba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/pgadmin/static/js/SchemaView/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default function FormView({
'select:not(disabled)',
'textarea',
'[tabindex]:not([tabindex="-1"]):not([data-test="tabpanel"])',
'div[class="cm-content"]:not([aria-readonly="true"])',
].join(', '));

if (firstFocussableElement) firstFocussableElement.focus();
Expand Down

0 comments on commit 29faba5

Please sign in to comment.