fix(playground): always set language to trigger the tree-sitter language onChange event (#12)
* Update index.html
set default language to `yaml` by `js`, because use html set the default select value does't trigger the `tree-sitter.js` onChange event
* fix: 🐛 fix problem select change event does not trigger macos
This commit is contained in:
parent
5a437c8f28
commit
a9e323c341
|
@ -117,3 +117,9 @@ comments: >
|
||||||
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
let select = document.getElementById('language-select')
|
||||||
|
select.value = 'yaml'
|
||||||
|
select.dispatchEvent(new Event('change'))
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue