Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[MDCSelect] Autocomplete doesn't work #7482

Closed
@tsteuwer-accesso

Description

Bug report

When using the autocomplete attribute on the mdc-select element, it doesn't handle the autocomplete event.

Steps to reproduce

  1. Go to https://stackblitz.com/edit/web-platform-afuksa?file=index.html
  2. Click on "First Name"
  3. Select your first name (with autofill enabled in your browser)
  4. It should fill in your first name and your street address, but you'll notice it doesn't autopopulate the country.

Actual behavior

The dropdown doesn't use the autofill value.

Expected behavior

The dropdown default selected should change to the autocomplete value.

Screenshots

N/A

Your Environment:

Software Version(s)
MDC Web 13
Browser Chrome
Operating System Ubuntu/Linux

Additional context

I've tried adding the autocomplete attribute to the main component, the mdc-menu component, etc. Nothing seems to work. I've also tried using a hidden input in the select and that also doesn't work.

Possible solution

N/A

Activity

allan-chen

allan-chen commented on Dec 9, 2021

@allan-chen
Collaborator

Hello,

The provided stackblitz does not contain any form fields. Could you revise the link?

In any case, this is likely because MDC select is a custom implementation and not based on a native select input field.

added
Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.
on Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [MDCSelect] Autocomplete doesn't work · Issue #7482 · material-components/material-components-web