Skip to content

Commit

Permalink
Add missing isActive parameter (#3296)
Browse files Browse the repository at this point in the history
  • Loading branch information
woohyunjin06 authored Aug 22, 2024
1 parent 121b608 commit 7d6feb3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,8 @@ extension NavigationLink {
isActive: Binding(
get: { item.wrappedValue != nil },
set: { isActive, transaction in
if isActive {
onNavigate()
} else {
onNavigate(isActive)
if !isActive {
item.transaction(transaction).wrappedValue = nil
}
}
Expand Down

0 comments on commit 7d6feb3

Please sign in to comment.