Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions isteven-multi-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'
var clickedEl = element.children()[0];

// Just to make sure.. had a bug where key events were recorded twice
angular.element( document ).off( 'click', $scope.externalClickListener );
angular.element( document ).off( 'click touchstart', $scope.externalClickListener );
angular.element( document ).off( 'keydown', $scope.keyboardListener );

// The idea below was taken from another multi-select directive - https://github.com/amitava82/angular-multiselect
Expand All @@ -611,7 +611,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'

angular.element( checkBoxLayer ).removeClass( 'show' );
angular.element( clickedEl ).removeClass( 'buttonClicked' );
angular.element( document ).off( 'click', $scope.externalClickListener );
angular.element( document ).off( 'click touchstart', $scope.externalClickListener );
angular.element( document ).off( 'keydown', $scope.keyboardListener );

// clear the focused element;
Expand Down Expand Up @@ -643,7 +643,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'

// Attach change event listener on the input filter.
// We need this because ng-change is apparently not an event listener.
angular.element( document ).on( 'click', $scope.externalClickListener );
angular.element( document ).on( 'click touchstart', $scope.externalClickListener );
angular.element( document ).on( 'keydown', $scope.keyboardListener );

// to get the initial tab index, depending on how many helper elements we have.
Expand Down Expand Up @@ -697,7 +697,7 @@ angular.module( 'isteven-multi-select', ['ng'] ).directive( 'istevenMultiSelect'

angular.element( checkBoxLayer.previousSibling ).removeClass( 'buttonClicked' );
angular.element( checkBoxLayer ).removeClass( 'show' );
angular.element( document ).off( 'click', $scope.externalClickListener );
angular.element( document ).off( 'click touchstart', $scope.externalClickListener );
angular.element( document ).off( 'keydown', $scope.keyboardListener );

// close callback
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"name": "isteven-angular-multiselect",
"version": "v4.0.0",
"description": "A multi select dropdown directive for AngularJS",
"main": [
"isteven-multi-select.js",
"isteven-multi-select.css"
],
"main":"isteven-multi-select.js",
"repository": {
"type": "git",
"url": "https://github.com/isteven/angular-multi-select.git"
Expand Down