@projectcaluma/ember-form 11.0.0-beta.14 → 11.0.0-beta.15
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/addon/lib/field.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [@projectcaluma/ember-form-v11.0.0-beta.15](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.14...@projectcaluma/ember-form-v11.0.0-beta.15) (2022-03-16)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* **form:** make sure dynamic options are loaded before validating ([2713b37](https://github.com/projectcaluma/ember-caluma/commit/2713b3718b64f9111ca3e7bec2a6c60fafcb183a))
|
7
|
+
|
1
8
|
# [@projectcaluma/ember-form-v11.0.0-beta.14](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.13...@projectcaluma/ember-form-v11.0.0-beta.14) (2022-03-11)
|
2
9
|
|
3
10
|
|
package/addon/lib/field.js
CHANGED
@@ -777,6 +777,8 @@ export default class Field extends Base {
|
|
777
777
|
* @private
|
778
778
|
*/
|
779
779
|
async _validateDynamicChoiceQuestion() {
|
780
|
+
await this.question.dynamicOptions;
|
781
|
+
|
780
782
|
return validate("inclusion", this.answer.value, {
|
781
783
|
in: (this.options || []).map(({ slug }) => slug),
|
782
784
|
});
|
@@ -797,6 +799,8 @@ export default class Field extends Base {
|
|
797
799
|
return true;
|
798
800
|
}
|
799
801
|
|
802
|
+
await this.question.dynamicOptions;
|
803
|
+
|
800
804
|
return value.map((value) => {
|
801
805
|
return validate("inclusion", value, {
|
802
806
|
in: (this.options || []).map(({ slug }) => slug),
|