feat: Improve container on:navigate

This commit is contained in:
Aleksi Lassila
2024-04-11 19:20:40 +03:00
parent 428258798c
commit 2f0f048d89
7 changed files with 68 additions and 26 deletions

View File

@@ -3,10 +3,10 @@
</script>
<Container
handleNavigateOut={{
left: () => {
on:navigate={({ detail }) => {
if (detail.direction === 'left' && detail.options.willLeaveContainer) {
history.back();
return false;
detail.preventNavigation();
}
}}
focusOnMount