@progressive-development/pd-calendar 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "progressive development calendar web component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.2.5",
6
+ "version": "0.2.6",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -257,22 +257,19 @@ class PdCalendarCell extends LitElement {
257
257
  }
258
258
  }
259
259
 
260
- _mouseEnter(e) {
261
- const dateKey = e.target.dataset.date;
262
- if (dateKey) {
263
- // convert back to date
264
- const userSelectedDate = parse(dateKey, 'YYYY-MM-DD');
265
- this.dispatchEvent(
266
- new CustomEvent('mouse-enter-date', {
267
- detail: {
268
- dateKey,
269
- date: userSelectedDate,
270
- bubbles: true,
271
- composed: true
272
- },
273
- })
274
- );
275
- }
260
+ _mouseEnter(e) {
261
+ // convert back to date
262
+ const userSelectedDate = parse(this.key, 'YYYY-MM-DD');
263
+ this.dispatchEvent(
264
+ new CustomEvent('mouse-enter-date', {
265
+ detail: {
266
+ dateKey: this.key,
267
+ date: userSelectedDate,
268
+ bubbles: true,
269
+ composed: true
270
+ },
271
+ })
272
+ );
276
273
  }
277
274
 
278
275
  _mouseLeave() {