Skip to content

Commit 9351113

Browse files
committedAug 27, 2021
docs: clarified limitation of blur()
Closes: ngneat#477
1 parent 13ab573 commit 9351113

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ spectator.click(byText('Element'));
225225
spectator.blur(SpectatorElement);
226226
spectator.blur(byText('Element'));
227227
```
228+
Note that if the element does not have focus, blur() may be ignored.
228229
- `focus()` - Triggers a focus event:
229230
```ts
230231
spectator.focus(SpectatorElement);

‎docs/docs/events.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spectator.click(byText('Element'));
2121
spectator.blur(SpectatorElement);
2222
spectator.blur(byText('Element'));
2323
```
24+
Note that if the element does not have focus, blur() may be ignored.
2425
- `focus()` - Triggers a focus event:
2526
```ts
2627
spectator.focus(SpectatorElement);

0 commit comments

Comments
 (0)