Select2 doesn't work when embedded in a bootstrap modal-open source projects select2/select2

When I use a select2 (input) in bootstrap modal, I can’t type anything into it. It’s like disabled? Outside he modal select2 works fine.

working example: http://jsfiddle.net/byJy8/1/ code:



  
    ×
    

Panel

  
  






  Numer
  
     
    
  


  
  
    Close
    Save changes
  

adn js

$("#vdn_number").select2({
    placeholder: "00000",
    minimumInputLength: 2,
    ajax: {
        url: "getAjaxData/",
        dataType: 'json',
        type: "POST",
        data: function (term, page) {
            return {
                q: term, // search term
                col: 'vdn'
            };
        },
        results: function (data) { // parse the results into the format expected by Select2.
            // since we are using custom formatting functions we do not need to alter remote JSON data
            return {results: data};
        }
    }
});