Releases: IamAdamJowett/angular-click-outside
Docs, no ID and callbacks
- Shortened bower description to remove bower warning on install (thanks @jcubic)
- Thanks to @Lorelei for the pull request to pass the event back in the callback function
- Thanks to @CosticaPuntaru for the improvement to now allow the directive to no longer need an id on the element for this to work
- Added basic ngdocs documentation
- Removed the addition of the element id to the classes array as now it no longer needs to be checked
Click outside without the need for an id
Thanks to @CosticaPuntaru for the suggestion to remove the need for the element the directive is attached to require to have an id. Directive can now be added to an element and assumed it will be excluded whether it has an id or not.
Removal of console.logs
v2.8.3 Version 2.8.3
Added support for more than two class exclusions
- Thanks to @mariomc for the fix if there is more than two classes to exclude and to @bramvandenbussche and @lamigue for also spotting it
- Stopped running through class checking if element clicked on has no classes or id's to improve performance
- Updated README
- Published latest repo with main.js to npm to allow webpack usage
- Added file input type to example to show functionality
- Updated readme detailing excluding element that directive is on
Added require support thanks to @apansky
Thanks to @apansky for adding reference to the main js file to allow it the be required.
Bug fix to allow links to be followed
Thanks to @fela98 for the following change:
The fix is to not return the value returned by the angular expression passed to clickOutside. I am not aware of any other use for the return value of the expression, I therefore removed the return value completely.
Absolute class checks, timeout delay for dynamic id creation
This release includes an addition of a timeout to allow for dynamic id creation. Also reverts back to absolute rather than index of checks on id's and classes for cases where parts of a class or id name listed in outside-if-not was contained in other elements classes or id's.
Cater for touchscreen laptops, fix event deregistering, revert class check code
This release is an attempt to cater for touchscreen laptops (where they have both touch and click available), reverting to class and id check loop code back to 2.2.1 version to solve bugs reported by @rbnvrw.
Improved example code
v2.4.5 Version 2.4.5
Updated the example app with more use cases
v2.4.4 Version 2.4.4