Skip to content

Commit d80bb81

Browse files
committed
feat: scroll to the input element after sending a request
1 parent b5a6820 commit d80bb81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/ApiExplorer.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,6 @@ import { Aside } from '@astrojs/starlight/components'
176176
console.log('dupes', url)
177177
}
178178
pokeapiPathInput.disabled = false
179+
pokeapiPathInput.scrollIntoView({ behavior: 'smooth', block: 'start' })
179180
}
180181
</script>

0 commit comments

Comments
 (0)