Skip to content

Commit

Permalink
[JavaScript][Accessibility] Return focus after copy (#4591)
Browse files Browse the repository at this point in the history
* Return focus after copy

* semicolon
  • Loading branch information
golddove authored Aug 17, 2020
1 parent d090a16 commit 1a14158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/nodejs/adaptivecards-designer/src/card-designer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,10 +970,10 @@ export class CardDesigner extends Designer.DesignContext {
new Clipboard(
this._copyJSONButton.renderedElement,
{
text: (trigger) => {
return JSON.stringify(this.getBoundCard(), null, 4);
}
});
text: (trigger) => JSON.stringify(this.getBoundCard(), null, 4)
})
.on("error", () => this._copyJSONButton.renderedElement.focus())
.on("success", () => this._copyJSONButton.renderedElement.focus());
}

// Tool palette panel
Expand Down

0 comments on commit 1a14158

Please sign in to comment.