mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-20 00:53:32 +02:00
feat: Improve container on:navigate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user