Open m417z opened 5 years ago
@m417z you might wanna look the following issue that was opened / resolved, maybe you can use the same technique to refresh the filter https://github.com/vedmack/yadcf/issues/602.
Or debug yadcf and try to call init on that filter like in initializeSelectPlugin
function
Select2 allows dynamic option creation by setting
tags: true
. Unfortunately it doesn't work well with yadcf, since the select box is re-created on each selection, and the newly created dynamic option gets removed.For example, here's a demo: https://jsfiddle.net/zjk2a4u9/
As you can see in the gif below, inserting "i" as a new option works, but the option is not preserved and the select box becomes empty: