Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Error when autocompleting a hidden field #87

Open
thiago-paim opened this issue Jun 3, 2013 · 0 comments
Open

Error when autocompleting a hidden field #87

thiago-paim opened this issue Jun 3, 2013 · 0 comments

Comments

@thiago-paim
Copy link

I'm using the autocomplete to fill some city fields on my website. In one specific section, i leave the autocomplete field hidden, then i fill it automatically so i can send it on a form (I know this probably isn't the best way to do it, being on a tight schedule it was the best i could think of).

When i do this using Google Chrome, it works perfectly. But when I use Firefox, i get the following error:
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.setSelectionRange]

It points out to line 979:
input.setSelectionRange(start, end);

This error only happens when the autocompleting field is hidden, and i'm using Firefox.

Does anyone have an idea about what's going on, or how to fix it?

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

No branches or pull requests

1 participant