Skip to content

Autofill Event Needed #1416

@dujavi

Description

@dujavi

What is the issue with the DOM Standard?

Issue
Autofill can affect multiple components simultaneously. Additionally, there are inconsistent browser events around autofill.

If you want to validate a multiple input autofill like an address you don’t want to validate 4 times (street, city, state, zip) - 4 events triggered for 4 input. What you want is a single autofill event from the browser with a list of the elements and values included in the event, right?

Suggestion
Event should include a reference (target) to the elements impacted by the autofill as well as the autofill type (address, phone, username, etc…) and values. There could be an option to preventDefault() or an option to change the values before they are applied.

Browsers should trigger a global autofill event on the document, iframe, and/or window (discuss). Should the event be on an element too? I would think not because it can get confusing when you have multiple events for what is actually a single event. There are pros and cons to having the event bubble down to the individual inputs, perhaps there should be a new event type for inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions