Skip to content

Commit ba32e58

Browse files
Azzuritebrettz9
authored andcommitted
Make the demo evaluate on each key press
1 parent c7f6bcd commit ba32e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const updateResults = () => {
3939
$('#results').value = JSON.stringify(result, null, 2);
4040
};
4141

42-
$('#jsonpath').addEventListener('change', () => {
42+
$('#jsonpath').addEventListener('input', () => {
4343
updateResults();
4444
});
4545

46-
$('#jsonSample').addEventListener('change', () => {
46+
$('#jsonSample').addEventListener('input', () => {
4747
updateResults();
4848
});

0 commit comments

Comments
 (0)