@projectcaluma/ember-form 11.0.0-beta.14 → 11.0.0-beta.15

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
+ # [@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
 
@@ -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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "11.0.0-beta.14",
3
+ "version": "11.0.0-beta.15",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"