iOS 16 SwiftUI TextField in section header (List)

If run this code on iOS16 keyboard gets dismissed randomly when character is typed (please see gif), while on iOS15 everything is fine.

struct ContentView: View {
    
    let names = ["Holly", "Josh", "Rhonda", "Ted"]
    @State var text = ""

    var body: some View {
        List {
            Section {
                ForEach(searchResults, id: \.self) { name in
                    Text(name)
                }
            } header: {
                TextField("Search for name", text: $text)
            }
        }
    }
    
    var searchResults: [String] {
        if text.isEmpty {
            return names
        } else {
            return names.filter { $0.contains(text) }
        }
    }
}

It happens when content is in a section with a header. Is it bug from apple introduced in iOS16 or am I doing something wrong? Has anyone had the same issue?

Where's the gif ?

Can't upload it here, throws me an error. However I have also described this issue on https://stackoverflow.com/questions/74600816/ios-16-swiftui-textfield-in-section-header-list, you could find gif there.

iOS 16 SwiftUI TextField in section header (List)
 
 
Q