Closed FlowIT-JIT closed 1 year ago
The bug relates to the manipulation of TreeView (data is reloaded) obtained via GetTreeView(). The DropDown control does not take external manipulation into account. Maybe it should, or maybe the DropDown control should expose a function allowing for data to be reloaded.
Accommodating every possible change external code can and might do to the picker controls will probably be very difficult. One could argue that GetTreeView() and GetListView should never have exposed the internal pickers, but rather have returned an interface with a limited set of capabilities. For the sake of reliability and predictability, we have merely added a new function that can be used to reload data. This will ensure that the DropDown handles the state of the Action Menu as expected. The updated JSFiddle (running fixed Fit.UI v. 2.12.4) demonstrates that the problem has been resolved using the new ReloadData(..) function: https://jsfiddle.net/ze9Lxuhs/2/
Notice comment regarding commit resolving the problem with "flickering" action menu: https://github.com/Jemt/Fit.UI/commit/55c1a2e2bdff709645a7a3e559c6ccff31bfe422#commitcomment-100093878
See https://jsfiddle.net/nd4bfeyp/8/
Open the DropDown and remove all items using the Action Menu
Now close and re-open the DropDown - the informative Action Menu is no longer shown as it normally would when no data is available.