@lion/form-core
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.1.4](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.3...@lion/form-core@0.1.4) (2020-06-09) | ||
### Bug Fixes | ||
* **form-core:** on reset the submitted values becomes false ([#753](https://github.com/ing-bank/lion/issues/753)) ([d86cfc5](https://github.com/ing-bank/lion/commit/d86cfc59018a2e5dcff0b2f5728683fc4e4861e6)) | ||
## [0.1.3](https://github.com/ing-bank/lion/compare/@lion/form-core@0.1.2...@lion/form-core@0.1.3) (2020-06-08) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/form-core", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Form-core contains all essential building blocks for creating form fields and fieldsets", | ||
@@ -45,3 +45,3 @@ "author": "ing-bank", | ||
}, | ||
"gitHead": "7573ecf53e50dd6ee72b4aed202a8fa21d0bc5fd" | ||
"gitHead": "43fc4d28dfe10a206b9e3cab7882bd253db9dd82" | ||
} |
@@ -144,2 +144,3 @@ import { dedupeMixin } from '@lion/core'; | ||
this.touched = false; | ||
this.submitted = false; | ||
this.dirty = false; | ||
@@ -146,0 +147,0 @@ this.prefilled = !this._isEmpty(); |
@@ -171,2 +171,3 @@ import { LitElement } from '@lion/core'; | ||
el.prefilled = true; | ||
el.submitted = true; | ||
el.resetInteractionState(); | ||
@@ -176,2 +177,3 @@ expect(el.dirty).to.be.false; | ||
expect(el.prefilled).to.be.false; | ||
expect(el.submitted).to.be.false; | ||
@@ -181,2 +183,3 @@ el.dirty = true; | ||
el.prefilled = false; | ||
el.submitted = true; | ||
el.modelValue = 'Some value'; | ||
@@ -187,2 +190,3 @@ el.resetInteractionState(); | ||
expect(el.prefilled).to.be.true; | ||
expect(el.submitted).to.be.false; | ||
}); | ||
@@ -189,0 +193,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
339343
8230