Skip to content

Commit

Permalink
[enhanced] focus on clipboardinput when open dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jparez committed Jun 14, 2024
1 parent 106466b commit e67547a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ module.exports = class Clipboard extends OverlayPlugin {
super.toggleWidget();
if (this.instance.store.getters.isWidgetOpened(this.overlayID)) {
this.clipboardInput.value = this.clipboard;
// put focus on the input field
this.clipboardInput.focus();
}
}

Expand Down

0 comments on commit e67547a

Please sign in to comment.