Same issue in SwiftUI while using .keyboardType(.numberPad) in combination with .preferredColorScheme(.dark). I'm afraid it's iOS / iPadOS bug.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: