Skip to content

Commit

Permalink
Merge pull request #247 from UnityFoundation-io/bugfix/nav-disappears…
Browse files Browse the repository at this point in the history
…-on-table

Bugfix/Nav disappears in table view
  • Loading branch information
JackDiSalvatore authored Apr 24, 2024
2 parents 2d60383 + 207937f commit dabfe2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/routes/issues/table/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
const serviceRequestResStore = useServiceRequestsResponseStore();
let listElement: HTMLElement | undefined;
$: if ($serviceRequestResStore.type === 'success') listElement?.scrollIntoView();
$: if ($serviceRequestResStore.type === 'success') {
listElement?.scrollIntoView();
window.scrollTo({ top: 0, behavior: 'instant' });
}
</script>

{#if $serviceRequestsRes.type === 'success'}
Expand Down

0 comments on commit dabfe2a

Please sign in to comment.