Skip to content

Commit b4d689e

Browse files
committed
Revert README - onchange now works
1 parent 2b08e30 commit b4d689e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,9 @@ Now that you have registered a template, you can use the custom `<code-input>` e
105105
```
106106
*or*
107107
```HTML
108-
<code-input lang="HTML" placeholder="Type code here" value="<a href='https://github.com/WebCoder49/code-input'>code-input</a>" template="syntax-highlighted" oninput="console.log('Your code is', this.value)"></code-input>
108+
<code-input lang="HTML" placeholder="Type code here" value="<a href='https://github.com/WebCoder49/code-input'>code-input</a>" template="syntax-highlighted" onchange="console.log('Your code is', this.value)"></code-input>
109109
```
110110
</details>
111-
> ❕To use the event when text is changed in a `coed-input` element, use `oninput` rather than `onchange`.
112111

113112
## Contributing
114113
If you have any features you would like to add to `code-input`, or have found any bugs, please [open an issue](https://github.com/WebCoder49/code-input/issues) or [fork and submit a pull request](https://github.com/WebCoder49/code-input/fork)! All contributions to this open-source project would be greatly appreciated.

0 commit comments

Comments
 (0)