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

Input hint breaks with HTMX and AlpineJS #85

Open
niketpathak opened this issue Jul 23, 2024 · 0 comments
Open

Input hint breaks with HTMX and AlpineJS #85

niketpathak opened this issue Jul 23, 2024 · 0 comments
Assignees

Comments

@niketpathak
Copy link
Collaborator

I am trying to implement typeahead in a website with HTMX and AlpineJS. The problem is that the "hint" input is an exact clone of the original input, including all HTMX and AlpineJS attributes. Unfortunately, this doesn't really work and breaks typeaheads functionality (x-model on the input get copied and prevents typeahead from setting the hint). It would be great to either not copy special attributes at all or offer a configuration setting to select attributes to copy.
Thanks

Originally posted by @tomfrit in #75

@niketpathak niketpathak changed the title I am trying to implement typeahead in a website with HTMX and AlpineJS. The problem is that the "hint" input is an exact clone of the original input, including all HTMX and AlpineJS attributes. Unfortunately, this doesn't really work and breaks typeaheads functionality (x-model on the input get copied and prevents typeahead from setting the hint). It would be great to either not copy special attributes at all or offer a configuration setting to select attributes to copy. Input hint breaks with HTMX and AlpineJS Jul 23, 2024
@niketpathak niketpathak self-assigned this Jul 23, 2024
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

1 participant