Bugs? Two FileBrowserComponent issues

I am seeing two issues with using the FileBrowserComponent:

  1. If the user immediately clicks on a file, without first clicking on another file or anywhere else (so that it takes focus, I assume), then file name box below does not get populated. Once the list has been clicked on once, it works as expected, changing the file name below every time you click. But if it doesn’t have focus, then even though getSelectedFiles(0) returns that file, it does not populate in the file name box. To work around it, I do that in the fileClicked() and selectionChanged() listener callbacks. Then it works as expected.
  2. If you click the Up arrow button to change folders, the file name box does not get cleared. It seems illogical to me to keep that filename displayed if you’re navigating to someplace. So I added code to clear that box in that case, in the browserRootChanged() listener callback. That fixes the issue.

The workarounds are simple, but it would be nice if the FileBrowserComponent handled all this without having to do it in a listener callback.