vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.73k forks source link

Changes options of select2 depend on another select2 #1154

Open mtilokani opened 4 years ago

mtilokani commented 4 years ago

Hi...

I am able to change options in select2 based on another select2 through following line: $('.select2-class').editable('option', 'source', [...]);

Options are getting changed, but as soon as select 1 of the option then it is showing as "Empty" as soon as I mark for save.

So is there any solution for this.

And I can also see in editable element that source gets updated but input.sourceData is still holding old set of options.

So is there any solution for this? Please help.