Skip to content

Commit 8f24379

Browse files
committed
Changed event handler from onkeyup to oninput
1 parent 8239107 commit 8f24379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="banner p-3 text-primary">TextEditor</h1>
3232
<div class="col">
3333
<div class="form-group">
3434
<label for="text-input">Your Document Text</label>
35-
<textarea class="form-control" id="text-input" rows="3" onkeyup="updateText()"></textarea>
35+
<textarea class="form-control" id="text-input" rows="3" oninput="updateText()"></textarea>
3636
</div>
3737
</div>
3838
<div class="col">

0 commit comments

Comments
 (0)