Skip to content

Commit f98ed93

Browse files
authored
Merge pull request datacite#954 from datacite/pb575-metadata-completeness
Remove focus from the button after clicking to ultimately clear the s…
2 parents a15cb0a + f698268 commit f98ed93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/metadata-dashboard-button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default class MetadataDashboardButton extends Component {
1414

1515
@action
1616
openLink(url) {
17+
document.activeElement.blur(); // Remove focus from the button after clicking to ultimately clear the styles when the user returns to the page.
1718
window.open(url, '_blank', 'noopener,noreferrer');
1819
}
1920
}

0 commit comments

Comments
 (0)