1
0
Fork 0

For #3175: Correctly grabs focus in search fragment (#3938)

master
Sawyer Blatz 2019-07-08 14:44:30 -07:00 committed by GitHub
parent 9901514766
commit 83312b38aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,9 @@ class ToolbarUIView(
updateEditingState(newState)
}
if (!newState.focused) {
if (newState.focused) {
view.focus()
} else {
view.clearFocus()
}