Fixes TextInput for directories