tvOS Context Menu on LazyVGrid is selecting item below.

Context menu on tvOS LazyVGrid selecting wrong item. It works fine if selecting items on last row.

Testing on code from https://developer.apple.com/videos/play/wwdc2024/10207/

I just added contextMenu

LazyVGrid(columns: columns, spacing: 40) {
    ForEach(sortedMatchingAssets) { asset in
        Button {} label: {
            asset.landscapeImage
                .resizable()
                .aspectRatio(16 / 9, contentMode: .fit)
                .contextMenu {
                    Button("Test") {}
                }

            Text(asset.title)
        }
        .buttonStyle(.borderless)
    }
}

Attached video with the bug - https://www.icloud.com/iclouddrive/020zq2PxZ_E_1Pr0vE86-8aww#Screen_Recording_2024-06-13_at_9.26.15%E2%80%AFPM

I am seeing the same issue with my own code.

Curiously, if the aspect ratio of the image in the button is taller than it is wide then it works normally.

Seeing this as well. Adding a certain amount of padding to the view also seems to work as a workaround.

Unfortunately, all of the workarounds discovered so far change the visual design in negative ways.

tvOS Context Menu on LazyVGrid is selecting item below.
 
 
Q