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

Possibility to set the "autocomplete": "off" to a different value. #101

Open
sdzhurova opened this issue Feb 27, 2020 · 1 comment
Open

Comments

@sdzhurova
Copy link

Hello,

Is there a possibility to change the "autocomplete" attribute on the <input> from the default value "off" to something else? Currently the "off" doesn't work in Chrome.

I tested with:
this.$refs.autocomplete.setAttribute('autocomplete', 'on');
this.$refs.autocomplete.setAttribute('autocomplete', 'test');
but an error appears :
"TypeError: this.$refs.autocomplete.removeAttribute is not a function".

Best regards,
Simona

@palazonyuanchen
Copy link

palazonyuanchen commented Sep 24, 2021

temporary solution:
<autocomplete :on-focus="onFocus"></autocomplete>

in the methods
methods : { onFocus(event) { event.target.setAttribute('autocomplete', "nope") } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants