We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de55e9b commit 9ca79f3Copy full SHA for 9ca79f3
packages/uui-copy/lib/uui-copy.element.ts
@@ -122,12 +122,15 @@ export class UUICopyElement extends LitElement {
122
await navigator.clipboard
123
.writeText(this.#valueToCopy)
124
.then(() => {
125
- button.state = 'success';
+ //button.state = 'success';
126
this.dispatchEvent(
127
new UUICopyEvent(UUICopyEvent.COPIED, {
128
detail: { text: this.#valueToCopy },
129
}),
130
);
131
+ setTimeout(() => {
132
+ button.state = 'success';
133
+ }, 2000);
134
})
135
.catch(err => {
136
button.state = 'failed';
0 commit comments