Skip to content

Commit e0634c9

Browse files
crisbetommalerba
authored andcommitted
docs(clipboard): example in readme not working on firefox
Fixes the example that is given in the docs not working on Firefox, because the initial attempt starts off in a `setTimeout` which isn't allowed. Fixes #18449.
1 parent 18e1e48 commit e0634c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/clipboard/clipboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class HeroProfile {
5151
pending.destroy();
5252
}
5353
};
54-
setTimeout(attempt);
54+
attempt();
5555
}
5656
}
5757
```

0 commit comments

Comments
 (0)