-
Notifications
You must be signed in to change notification settings - Fork 134
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
Previous data gets lost on selection #40
Comments
I'm confused as to why the page is refreshing when the item is selected. In this context (http://maxwells.github.io/bootstrap-tags.html) does it also refresh the page after selecting something? Does your code tell the page to refresh through some event handler? Is the issue that the page is refreshing when a user clicks the suggestion or are you expecting the data to hang around from page to page? |
I have just realised that the problem only occurs when I hit the enter button to select an item. I mean it is not actually refreshing the it's just posting the form and that causes refreshing. If I update the situation :
Sorry for the inconvenience. |
Got it. Thanks for clarifying. Yeah -- I had never tried to personally use it in a form. I've added an event.preventDefault() call that should work. Newest version is 1.1.5: https://github.com/maxwells/bootstrap-tags/tree/1.1.5 -- reopen the issue if that doens't work for you |
When I initialize the tags just like the code above, for the first time it initializes perfectly. When I select an item from the suggestions list, the page refreshes and I lose the previously selected data.
The text was updated successfully, but these errors were encountered: