Not sure if it is the issue, but try to use a string value for the Text Field. You could use sam_sip_caller_id instead of sam_sip_number. Will see if I can reproduce the problem.
Yes, I thought the same.
I've changed to SIP number which is a text value and first few tags added correctly but then after some - it repeat the issue:
Not sure if it's related but I'm getting error in Dev tools console:
I’ve already tried to clear cache - didn’t helped.
Tried even different browser - didn’t helped.
Tried to drop all tables and re-created them - didn’t helped.
So it seems to mess up with the records where the text and value matches. When you select value 9 with text TEST it seems to insert it with the text 9 which matches value 24.
I can reproduce it this way, will see if I can fix it.
Would it be possible for you to have a dataset where the value and label wouldn’t match. It seems to be a difficult problem to fix. When you select TEST in your sample it will insert the value 9 and lookup the value in both the value and label fields, so in your case in sam_sip_id and sam_sip_secret, and it will see a match of 9 in the sam_sip_secret field and return that as selected item.
The problem is just that tags are allowed to be added by value or label, so when there are duplicates it will not know which is the correct item and can return the invalid item.