Fix for text input error mouse up fires after