Skip to content

Commit

Permalink
chore: fix the expand/collapse test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 28, 2024
1 parent 22e1fd0 commit df1c158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/develop-vanilla.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@
}

document.getElementById('expandAll').onclick = function () {
testEditor.expand(() => true)
testEditor.expand([], () => true)
}

document.getElementById('expand2').onclick = function () {
testEditor.expand((path) => path.length < 2)
testEditor.expand([], (path) => path.length < 2)
}

document.getElementById('collapseAll').onclick = function () {
testEditor.expand(() => false)
testEditor.collapse([], true)
}

document.getElementById('selectPath').onclick = function () {
Expand Down

0 comments on commit df1c158

Please sign in to comment.