fixed bug to stop binding callback from being called when input has focus