@laser-ui/hooks 0.1.6 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [0.2.1](https://github.com/laser-ui/laser-ui/compare/v0.2.0...v0.2.1) (2023-10-31)
6
+
7
+ ### Bug Fixes
8
+
9
+ - use the same values used for the call to addEventListener() when calling removeEventListener() ([deaffc3](https://github.com/laser-ui/laser-ui/commit/deaffc31f60a956ef38085c135ded6ad7b7db2e6))
10
+
11
+ # [0.2.0](https://github.com/laser-ui/laser-ui/compare/v0.1.6...v0.2.0) (2023-10-31)
12
+
13
+ **Note:** Version bump only for package @laser-ui/hooks
14
+
5
15
  ## [0.1.6](https://github.com/laser-ui/laser-ui/compare/v0.1.5...v0.1.6) (2023-10-13)
6
16
 
7
17
  **Note:** Version bump only for package @laser-ui/hooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laser-ui/hooks",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
4
4
  "description": "Shared hooks used by Laser UI packages.",
5
5
  "keywords": [
6
6
  "ui",
@@ -38,5 +38,5 @@
38
38
  "access": "public",
39
39
  "directory": "../../dist/libs/hooks"
40
40
  },
41
- "gitHead": "da66a982fe29f71012ff6d0141ee90366da93ad2"
41
+ "gitHead": "c35ed7268d14adc58d9f0df122d424526655cd97"
42
42
  }
package/useEvent.js CHANGED
@@ -8,7 +8,7 @@ export function useEvent(target, eventName, callback, options, disabled = false)
8
8
  };
9
9
  el.addEventListener(eventName, listener, options);
10
10
  return () => {
11
- el.removeEventListener(eventName, listener);
11
+ el.removeEventListener(eventName, listener, options);
12
12
  };
13
13
  }
14
14
  });