Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Empty input field when using tokens option #62

Closed
va5ja opened this issue Jan 7, 2014 · 5 comments
Closed

Empty input field when using tokens option #62

va5ja opened this issue Jan 7, 2014 · 5 comments

Comments

@va5ja
Copy link

va5ja commented Jan 7, 2014

When initializing tokenfield with tokenfield({ 'tokens': data.tags }) the input field is not updated to what data.tags contains. It has to be manually updated. It could be automatic.

@fedesoria
Copy link
Contributor

#63 Adds documentation on how you could do this

@maciekmp
Copy link

It seems that this option does not work with data attribute. For example below after initialize there is no tags at all (even after remove value attribute).

<input type="text" data-tokens="one, two" value=""/>

@ragulka
Copy link
Member

ragulka commented Feb 5, 2014

@va5ja and/or @maciekmp can you please set up a jsfiddle that demonstrates the issue? I'm not sure I understand the problem.

@maciekmp
Copy link

maciekmp commented Feb 5, 2014

http://jsfiddle.net/QJRQp/ - this should show tokenfield with values or am I wrong?

@ragulka
Copy link
Member

ragulka commented Feb 19, 2014

@maciekmp It seems that options were not being read from data attributes. I just pushed a commit that fixes this.

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

4 participants