henrychavez/materialize-tags

Input text is not deleted when a tag is created

jvanoostrom opened this issue · 1 comments

Hi there,

First of all, great work on this awesome tagging feature. I'm running into some problems, however. I'm following the usual instructions, ie. adding a data-role to the input field which should contain the tags. When I am typing a tag, followed by a comma, the tag gets created but the initial text still remains in the input field. In the examples on the website the text is deleted.

Here's a fiddle: https://jsfiddle.net/huyhm1as/3/

Could you check what I am doing wrong?
Thanks!
Jeffrey

I've managed to get it to work. Seems like including Typeahead is mandatory. Also, the widget options are not set in the $( document ).ready(function({}));.