# FileBrowserComponent ( ... initialFileOrDirectory -\> selection

**URL:** <https://forum.juce.com/t/filebrowsercomponent-initialfileordirectory-selection/26316>\
**Category:** General JUCE discussion\
**Created:** [February 8, 2018, 2:28pm UTC](https://forum.juce.com/t/filebrowsercomponent-initialfileordirectory-selection/26316 "2018-02-08T14:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [February 8, 2018, 2:28pm UTC](https://forum.juce.com/t/filebrowsercomponent-initialfileordirectory-selection/26316/1 "2018-02-08T14:28:31Z")

</div>

unlike as described, the initialFileOrDirectory isn’t selected in the browser (only in the text-field), also it would be cool if the viewport shows it in the visible part (when its a file)

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [February 9, 2018, 9:20am UTC](https://forum.juce.com/t/filebrowsercomponent-initialfileordirectory-selection/26316/2 "2018-02-09T09:20:42Z")

</div>

Thanks. I’ll take care of that.

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [February 9, 2018, 12:28pm UTC](https://forum.juce.com/t/filebrowsercomponent-initialfileordirectory-selection/26316/3 "2018-02-09T12:28:58Z")

</div>

A fix for this will appear on develop shortly with commit [`3724a52`](https://github.com/WeAreROLI/JUCE/commit/3724a52ac8b4c7c9c96a33e15658cce4cb340919).
