silverstripe-dependentdropdownfield
silverstripe-dependentdropdownfield copied to clipboard
Page reload causes dependent menu to lose options
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 () {
...
});
??