diff --git a/Sources/Sst/HistoryView.swift b/Sources/Sst/HistoryView.swift index e2ec19a..452cef3 100644 --- a/Sources/Sst/HistoryView.swift +++ b/Sources/Sst/HistoryView.swift @@ -50,7 +50,7 @@ struct HistoryView: View { .focusable() .focused($listFocused) .focusEffectDisabled() - .onChange(of: list.selection) { _, _ in listFocused = true } + .onChange(of: list.selection) { _, new in if new != nil { listFocused = true } } .onDeleteCommand { if let id = list.selection { list.delete(id: id) } }