I noticed that Safari in new iOS 16.0 autofocuses an input element if:
- type=number or text
- pattern=\d*
- margin-top on containing element is 48px (I did not test the precise cut-off value here)
Test page: https://www.autoledky.sk/ios.php
autocomplete=off and autofocus=false doesn't change anything. Before iOS 16 there were no such issues. The problem is confirmed on 2 seperate iPhones with iOS 16.
This leads to automatic homepage scrolling, enlarging and opening the keypad, which is unacceptable. How should I solve the issue without obvious "remove input/pattern".