Closed avkoehl closed 2 years ago
Probably best to detach the visualization refresh from the 'on-selected' attribute of the dropdown. Instead have a submit button. This will resolve some glitches when moving through the options quickly, and may resolve this issue as well
This was occurring because of the nested drop down items not having access to the correct 'term' variable. When multiple terms had been selected, the callback on model switching would submit two requests, one for each of the terms, and these would override each other. I don't understand javascript well enough to fix this elegantly. Made the 'term' variable a global to resolve this.
If you have selected several terms. Sometimes when you select a new model from the dropdown it will redraw the network multiple times, with the last redraw being the network of a previously selected but not current term