Fix bug when clicking on file item lose focus