Clear select2 selected item and avoid adding space to parent div


  1. I append select2 drop down inside bootstrap modal,
    after initiate select2 , it adds extra spaces to the container div ( vertical space and horizondal space ). how can i avoid this?

  2. I can’t clear the select2 selected item. is this issue related to issue no : 1 ?