1
I have a registration screen that has a tag field.. As it fills and presses enter, it looks like this:
Let’s assume he registered, but forgot to enter a tag, for example:
This tag will be lost, when he clicks edit this registration will have only A, B and C.
How could I check this? When it clicks register, see if all the elements are inside: $('.chips').material_chip('data'));
if one has not, insert.
I think there is no possibility for this, because how are you going to insert something that you don’t have? These chips work precisely with the enter key to be registered in date, if the person typed something in the input and forgot to press enter is as if that input is empty.
– LeAndrade
@Leandrade could not do onBlur to "enter"?
– hugocsl
@hugocsl Cara for the brief read in the documentation (because it is very little) the default event is enter itself, and I have not seen methods to change this. I think even creating a function with Blur the chips will wait the enter to save in date.
– LeAndrade
Putz... I’ll dig deeper and see if I can find something.
– dds