@progressive-development/pd-forms 0.0.44 → 0.0.45
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 +1 -1
- package/src/PdInput.js +4 -0
- package/src/PdInputArea.js +1 -1
- package/src/PdRadioGroup.js +2 -3
- package/src/PdSelect.js +1 -1
package/package.json
CHANGED
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: {
|
package/src/PdInputArea.js
CHANGED
|
@@ -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
|
-
|
|
159
|
+
this._errorMsg = '';
|
|
160
160
|
this.dispatchEvent(new CustomEvent('key-pressed', {
|
|
161
161
|
detail: {
|
|
162
162
|
value: this._input.value,
|
package/src/PdRadioGroup.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
277
|
+
this._errorMsg = '';
|
|
278
278
|
this.dispatchEvent(
|
|
279
279
|
new CustomEvent('change-value', {
|
|
280
280
|
detail: {
|