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

feat: add AutoComplete property to/in NumberField #2516

Closed
JarJasAskom opened this issue Aug 12, 2024 · 1 comment · Fixed by #2560
Closed

feat: add AutoComplete property to/in NumberField #2516

JarJasAskom opened this issue Aug 12, 2024 · 1 comment · Fixed by #2560
Labels
chore Maintenance or non-code work

Comments

@JarJasAskom
Copy link

FluentTextField has AutoComplete property. FluentNumberField does not have AutoComplete property. Without it I can't block browser autocomplete popup. Such a popup is visible in demo page:

https://www.fluentui-blazor.net/NumberField

image

@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Aug 12, 2024
@dvoituron
Copy link
Collaborator

Indeed, this attribute is missing on the FluentNumber component.

Until we add this parameter, you can use this JavaScript code

const elementId = "yourNumberFieldId"
const fieldElement = document.querySelector("#" + elementId)?.shadowRoot?.querySelector("#control");
if (!!fieldElement) {
    fieldElement?.setAttribute("autocomplete", "off");
}

@vnbaaij vnbaaij added chore Maintenance or non-code work and removed triage New issue. Needs to be looked at labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance or non-code work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants