@cocreate/validation 1.4.26 → 1.4.27
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
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.4.27](https://github.com/CoCreate-app/CoCreate-validation/compare/v1.4.26...v1.4.27) (2022-08-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* getValue and setValue using HTMLElement.prototype ([58d4af4](https://github.com/CoCreate-app/CoCreate-validation/commit/58d4af476e01a5ba68e312c567aa8c9df4bffcb7))
|
|
7
|
+
|
|
1
8
|
## [1.4.26](https://github.com/CoCreate-app/CoCreate-validation/compare/v1.4.25...v1.4.26) (2022-06-18)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import render from '@cocreate/render';
|
|
|
5
5
|
export var required = (elements) => {
|
|
6
6
|
let failedElements = [];
|
|
7
7
|
for (let element of elements){
|
|
8
|
-
let value = element.getValue(
|
|
8
|
+
let value = element.getValue();
|
|
9
9
|
if (value){
|
|
10
10
|
element.setAttribute('validation', 'true');
|
|
11
11
|
}
|