Fixed issues when leaving table / clicking on the input field