Skip to content

Commit

Permalink
Fix a bug with multiple clicking on a dropdown menu item.
Browse files Browse the repository at this point in the history
  • Loading branch information
bullinnyc committed Apr 13, 2023
1 parent ff0a0c0 commit 15efe98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/PopUpMenuSwift/Views/PopUpMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public struct PopUpMenuView: View {
cornerRadius: popUpStyle.itemCornerRadius,
padding: popUpStyle.itemPadding
) {
guard menuState.isShowMenu[menuIndex] else { return }

menuState.clearState()
startOrStopPopUpTimer()
stopBounceTimerIfNeeded()
Expand Down

0 comments on commit 15efe98

Please sign in to comment.