Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select "autoComplete" prop not working #5813

Closed
1 of 2 tasks
joshua-webdev opened this issue Feb 23, 2024 · 2 comments
Closed
1 of 2 tasks

Select "autoComplete" prop not working #5813

joshua-webdev opened this issue Feb 23, 2024 · 2 comments
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@joshua-webdev
Copy link
Contributor

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.5.3

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

Chrome

Describe the bug

When setting the autoComplete prop on a <Select> component, the input's autocomplete attribute does not use the provided value - it uses the default value off. This is an issue when using the searchable prop since it allows user input, which can trigger the browser autocomplete.

If possible, include a link to a codesandbox with a minimal reproduction

https://codesandbox.io/p/sandbox/mantine-react-template-forked-c3f42c?file=%2Fsrc%2FApp.tsx

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue
@rilrom
Copy link
Contributor

rilrom commented Feb 24, 2024

comboboxProps={{
  autoComplete: "input-autocomplete",
}}

This looks like it applies the autoComplete value as expected in your example, however it does cause typescript to complain of a missing type.

@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Feb 26, 2024
@rtivital
Copy link
Member

Fixed in 7.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

3 participants