Bug 248894 - Autocomplete suggestion above the keyboard fails to autocomplete when attempting to fill multiple different fields.
Summary: Autocomplete suggestion above the keyboard fails to autocomplete when attempt...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-07 11:11 PST by odinman08
Modified: 2022-12-14 11:12 PST (History)
6 users (show)

See Also:


Attachments
steps showing the bug and expected result. (692.10 KB, image/png)
2022-12-07 11:11 PST, odinman08
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description odinman08 2022-12-07 11:11:30 PST
Created attachment 463926 [details]
steps showing the bug and expected result.

It appears the name attribute for fields also needs to not include "birthday" example "day" keyword in them to reproduce. 
- Visit https://codepen.io/kaplag/pen/GRGzZEX…
- tap into email field
- tap an email in the "suggestions" bar above keyboard (not the autoFill contact button)
- observe autofill works

- focus moves to "month" field. Tap the birthday in the "suggestions" bar above the keyboard.
- observe the fields do not autocomplete.

Given that the fields have appropriate autocomplete attribute values when tapping the autofill suggestion bar then it fills all related fields with the data 

workaround includes "birthday" in name attributes. example "birthday-day"
https://codepen.io/kaplag/pen/KKerpVV

I'm speculating that there's some conflict with the standard autocomplete attribute and Safari's own logic to predict fields that could be autofilled.
Comment 1 Radar WebKit Bug Importer 2022-12-14 11:12:19 PST
<rdar://problem/103364643>