Skip to content

Commit c6fc168

Browse files
Fix issue when only using single key press
1 parent f992a11 commit c6fc168

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
2-
All notable changes to the "vue3-easter-egg-trigger" plugin will be documented in this file.
2+
All notable changes to the "vue-easter-egg-trigger" plugin will be documented in this file.
3+
4+
## v3.0.2
5+
2024-01-19
6+
[main] (@webdevnerdstuff)
7+
* Fix issue when only using single key press
38

49
## v3.0.1
510
2024-01-17

src/playground/configs/templates/PlaygroundPage.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
color="primary"
3939
:disabled="clickClassTriggered"
4040
>
41-
Triggered by Class
41+
Triggered by Class (3 clicks)
4242
</v-btn>
4343

4444
<VEasterEggTrigger
@@ -53,7 +53,7 @@
5353
class="callback-triggered"
5454
:class="callbackTriggeredClass"
5555
>
56-
Class element clicked
56+
Class element clicked 3 times
5757
</div>
5858
</v-col>
5959

src/plugin/VEasterEggTrigger.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ function checkPattern(e: Event | MouseEvent | KeyboardEvent): void {
105105
}
106106
107107
emitEvent();
108-
return;
109108
}
110109
111110
reset();
@@ -139,6 +138,7 @@ function checkTarget(): void {
139138
140139
// Reset //
141140
function reset(): void {
141+
142142
// Reset timeout and clear input keys //
143143
timeout = setTimeout(() => {
144144
clearTimeout(timeout);

0 commit comments

Comments
 (0)