mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-09 03:22:49 +00:00
fix: editing chords bouces back to page 1, fixes #22
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
function search(event: Event) {
|
function search(event: Event) {
|
||||||
const query = (event.target as HTMLInputElement).value
|
const query = (event.target as HTMLInputElement).value
|
||||||
searchFilter.set(query && searchIndex ? searchIndex.search(query) : undefined)
|
searchFilter.set(query && searchIndex ? searchIndex.search(query) : undefined)
|
||||||
|
page = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function insertChord(actions: number[]) {
|
function insertChord(actions: number[]) {
|
||||||
@@ -72,10 +73,6 @@
|
|||||||
setContext("cursor-crossfade", crossfade({}))
|
setContext("cursor-crossfade", crossfade({}))
|
||||||
|
|
||||||
let page = 0
|
let page = 0
|
||||||
$: {
|
|
||||||
$items
|
|
||||||
page = 0
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|||||||
Reference in New Issue
Block a user