0

Hi I want to implement bootstrap dropdown with input type=text instead of button. Although I am able to do so with following code but not able to prevent this dropdown from closing on click event.

 <div class="dropdown">
   <div class="dropdown-toggle"  data-toggle="dropdown">
      <input type="text" />
  </div>
  <div class="dropdown-menu" >
      <div ng-click="$event.stopPropagation();">
        <a href="" style="margin-left:15px;">Select All</a><a href="" style="margin-left:20px;">Unselect All</a>
          <ul >
              <li ng-repeat="test in testArr "ng-click="doSomething(this)">{{test.name}}</li>
          </ul>
      </div>

  </div>

Tried many answers but could not help with any

amphetamachine
  • 27,620
  • 12
  • 60
  • 72
Ashish_B
  • 114
  • 1
  • 9

0 Answers0