diff --git a/demos/presentation/main.go b/demos/presentation/main.go index 859cf64..351107f 100644 --- a/demos/presentation/main.go +++ b/demos/presentation/main.go @@ -55,6 +55,10 @@ func main() { SetRegions(true). SetWrap(false). SetHighlightedFunc(func(added, removed, remaining []string) { + if len(added) == 0 { + return + } + pages.SwitchToPage(added[0]) })