-
Notifications
You must be signed in to change notification settings - Fork 333
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
Angular directive name conflicts with autocomplete="off"
#136
Comments
@jerskouille can this be solved with the noConflict method recently introduced? #134 |
Unfortunately no. This was a bold move on our end to take an actual HTML attribute as a directive name. This is definitely a bug, but I think it is easily resolvable. We're not expecting any value to be passed through the We also need to take into account that the directive is restricted on Attribute & Class, so for instance: <input class="autocomplete" autocomplete="off" /> should still be using So in the end, I think we can continue the linking function only if (element.hasClass('autocomplete') || attrs.autocomplete === '') {
// ...
} here to prevent this. However, funnily enough, I think we're actually setting |
Bug 🐞
The Angular directive name conflicts with the HTML
autocomplete
attribute. When usingautocomplete="off"
on an input on the same page as the Algolia autocomplete directive, the directive converts the input into an Algolia autocomplete input.The text was updated successfully, but these errors were encountered: