There's a good StackOverflow question on the same thing here. My answer is for jQuery but whatever, you need to call $('.selector').trigger("chosen:updated"); on the targeted <select> after you add items to it.

excuse me!
when i type data that not exist in select options under of select appear this message: "no results match"
and when press tab or enter mydata will deleted.
i want when type mydata this message not appeared and mydata not deleted.
can you help me?
thanks...