@progressive-development/pd-calendar 0.2.1 → 0.2.3

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.1",
6
+ "version": "0.2.3",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdCalendar.js CHANGED
@@ -219,7 +219,7 @@ export class PdCalendar extends LitElement {
219
219
 
220
220
  update(changedProperties) {
221
221
  // check for month selection (set by remote server if no result available for the first call)
222
- if (changedProperties.has("data") && this.data.monthSelection) {
222
+ if (changedProperties.has("data") && this.data && this.data.monthSelection) {
223
223
  const now = new Date(Date.now());
224
224
  const startDateNextMonth = new Date(now.getFullYear(), this.data.monthSelection, 1);
225
225
  this._currentMonthNavNr += 1;
@@ -159,7 +159,8 @@ class PdCalendarCell extends LitElement {
159
159
  }
160
160
 
161
161
  .today {
162
- border: 2px solid blue;
162
+ border: 2px solid blue;
163
+ pointer-events: none;
163
164
  }
164
165
 
165
166
  .selected {