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

Prevent elements mentioned by "update-elements" from clearing #226

Open
kakra opened this issue May 11, 2013 · 0 comments
Open

Prevent elements mentioned by "update-elements" from clearing #226

kakra opened this issue May 11, 2013 · 0 comments

Comments

@kakra
Copy link

kakra commented May 11, 2013

How do I prevent elements mentioned by the "update-elements" hash from being cleared as soon as the user starts typing? I only want them being updated if an autocomplete item is explicitly selected. This should be configurable because I have other use cases where I prefer the default behavior.

This is my use case scenario:

We have a list of field pairs (description, url) for a nested set of links attached to a post. The user will enter some text into the description, auto suggestions pop-up to suggest links found by the full-text indexer and creating an internal link if selected (like "post:///12345" or "download:///34567"). If the url field is already populated, the purpose of changing the description may be solely for editing purposes while the url should not change. This does not seem to be supported.

I could work around this by using a custom select event but actually that looks like a general use case to me and should be integrated into rails3-jquery-autocomplete.

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