AngularJS dropdown directive hide when clicking outside

后端 未结 9 2093
长发绾君心
长发绾君心 2020-11-29 22:06

I\'m trying to create a multiselect dropdown list with checkbox and filter option. I\'m trying to get the list hidden with I click outside but could not figure it out how. A

9条回答
  •  迷失自我
    2020-11-29 22:59

    There is a cool directive called angular-click-outside. You can use it in your project. It is super simple to use:

    https://github.com/IamAdamJowett/angular-click-outside

提交回复
热议问题