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

Disable autofill on mgt-search-box #3287

Open
dougroutledge opened this issue Sep 4, 2024 · 5 comments
Open

Disable autofill on mgt-search-box #3287

dougroutledge opened this issue Sep 4, 2024 · 5 comments

Comments

@dougroutledge
Copy link

Please make the auto-fill optional on this control. Many times is drops over important parts of the search results, frustrating users.

image

@Mnickii
Copy link
Collaborator

Mnickii commented Oct 1, 2024

Hi @dougroutledge, which browser are you using this control on?

@Mnickii Mnickii added Needs: Author Feedback Issue needs response from issue author and removed Needs: Triage 🔍 labels Oct 1, 2024
@dougroutledge
Copy link
Author

Edge, Chrome, Brave

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Issue needs attention from mantainers and removed Needs: Author Feedback Issue needs response from issue author labels Oct 1, 2024
@Mnickii
Copy link
Collaborator

Mnickii commented Oct 3, 2024

It's likely that this is an external feature, seeing as our control has autocomplete set to off. See this similar issue on edge

@Mnickii Mnickii removed the Needs: Attention 👋 Issue needs attention from mantainers label Oct 3, 2024
@dougroutledge
Copy link
Author

dougroutledge commented Oct 4, 2024

It's definitely not, the other input controls do not exhibit it, and the normal autocomplete ones that do on other pages, do not look the same graphically. This is 100% from the underlying fluent control being used. A way to turn it off that passes through to that would be nice.

@GuillermoCasalCaro
Copy link

I had the same problem with the mgt-people-picker, I was able to turn it off programmatically querying the DOM and setting the autocomplete attribute of the control to off. By default the autocomplete property is being set in the parent component instead of the input itself.

I'm using React + Typescript:

useEffect(() => {
    const fluent = ref.current?.shadowRoot?.querySelector('#people-picker-input');
    const inputControl = fluent?.shadowRoot?.querySelector('#control');
    if (!inputControl) return;
    (inputControl as HTMLInputElement).setAttribute('autoComplete', 'off');
}, []);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Triage 🔍
Development

No branches or pull requests

3 participants