Skip to content

Commit

Permalink
Fixing app freeze when switching pages (#3496)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ authored Jun 17, 2024
1 parent 1159b7c commit c995faa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/qml/components/MMToolbar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ Rectangle {
text: model.btnData.text

onClicked: {
// Prevent freezing by clearing focus from all elements
// See more at https://github.com/MerginMaps/mobile/issues/3389
root.forceActiveFocus()
root.index = model.index
model.btnData.clicked()
}
Expand Down

1 comment on commit c995faa

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.6.634311 just submitted!

Please sign in to comment.