@progressive-development/pd-forms 0.0.44 → 0.0.46

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": "Webcomponent pd-forms following open-wc recommendations",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.0.44",
6
+ "version": "0.0.46",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdInput.js CHANGED
@@ -171,7 +171,11 @@ export class PdInput extends PdBaseUIInput {
171
171
  }
172
172
 
173
173
  Aufrund der gennanten Problematik auskommentiert, ein evenlistener sorgt nun dafür
174
+
175
+ Nachtrag: Nun auf interne propertie umgestellt, im Test...
174
176
  */
177
+ this.errorMsg = '';
178
+
175
179
  this.dispatchEvent(
176
180
  new CustomEvent('key-pressed', {
177
181
  detail: {
@@ -156,7 +156,7 @@ export class PdInputArea extends PdBaseUIInput {
156
156
  event.preventDefault();
157
157
  } else {
158
158
  // If any other key, fire 'key-pressed'
159
- // this.errorMsg = ''; change with handler now...
159
+ this.errorMsg = '';
160
160
  this.dispatchEvent(new CustomEvent('key-pressed', {
161
161
  detail: {
162
162
  value: this._input.value,
@@ -75,9 +75,8 @@ export class PdRadioGroup extends LitElement {
75
75
  if (elCollection[keyValue] !== e.target) {
76
76
  elCollection[keyValue].value = false;
77
77
  }
78
- elCollection[keyValue].readonly = (elCollection[keyValue].value === 'true');
79
- // do with event handler, change from outside...
80
- // this.errorMsg = '';
78
+ elCollection[keyValue].readonly = (elCollection[keyValue].value === 'true');
79
+ this.errorMsg = '';
81
80
  });
82
81
  });
83
82
 
package/src/PdSelect.js CHANGED
@@ -274,7 +274,7 @@ export class PdSelect extends PdBaseUIInput {
274
274
 
275
275
  _onChange() {
276
276
  this.value = this._input.value;
277
- // this.errorMsg = ''; do not change public attribute inside component => progress, handle with event handler at the moment
277
+ this.errorMsg = '';
278
278
  this.dispatchEvent(
279
279
  new CustomEvent('change-value', {
280
280
  detail: {