silverstripe-dependentdropdownfield icon indicating copy to clipboard operation
silverstripe-dependentdropdownfield copied to clipboard

Page reload causes dependent menu to lose options

Open phptek opened this issue 9 years ago • 0 comments

Firefox 42 / Ubuntu 14.12

With x2 sets of dependent menus on a frontend form (one set for Region + Country, one set for Taxonomy + Children) if I make a selection in the first menu, the dependent menu shows the correct options [PASS]. However, if I reload the browser, the child menu loses its options. [FAIL]

Adding the following to the .js file fixes it:

depends.trigger('change');

...right before the main depends.change() line (Shouldn't that now be:

depends.on('change', function () { 
...
});

??

phptek avatar Dec 03 '15 10:12 phptek