@instructure/quiz-core 20.9.1-rc.6 → 20.9.1-rc.7

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.
@@ -51,9 +51,9 @@ export var AsyncSearch = /*#__PURE__*/function (_Component) {
51
51
  if (allOptions.length === 1) {
52
52
  var onlyOption = allOptions[0]; // automatically select the matching option
53
53
 
54
- var label = onlyOption.label || onlyOption.fullName;
54
+ var label = onlyOption.label || onlyOption.fullName || onlyOption.title || onlyOption.name;
55
55
 
56
- if (label.toLowerCase() === _this.state.inputValue.toLowerCase()) {
56
+ if (label && label.toLowerCase() === _this.state.inputValue.toLowerCase()) {
57
57
  _this.changeSelectedOption([].concat(_toConsumableArray(_this.props.selectedOption.map(function (option) {
58
58
  return option.uuid;
59
59
  })), [onlyOption.uuid]));
@@ -76,9 +76,9 @@ var AsyncSearch = /*#__PURE__*/function (_Component) {
76
76
  if (allOptions.length === 1) {
77
77
  var onlyOption = allOptions[0]; // automatically select the matching option
78
78
 
79
- var label = onlyOption.label || onlyOption.fullName;
79
+ var label = onlyOption.label || onlyOption.fullName || onlyOption.title || onlyOption.name;
80
80
 
81
- if (label.toLowerCase() === _this.state.inputValue.toLowerCase()) {
81
+ if (label && label.toLowerCase() === _this.state.inputValue.toLowerCase()) {
82
82
  _this.changeSelectedOption([].concat((0, _toConsumableArray2.default)(_this.props.selectedOption.map(function (option) {
83
83
  return option.uuid;
84
84
  })), [onlyOption.uuid]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.9.1-rc.6+20c0e2073",
3
+ "version": "20.9.1-rc.7+7d9df0379",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.51.0",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^3.1.0",
47
- "@instructure/quiz-common": "20.9.1-rc.6+20c0e2073",
48
- "@instructure/quiz-i18n": "20.9.1-rc.6+20c0e2073",
49
- "@instructure/quiz-interactions": "20.9.1-rc.6+20c0e2073",
50
- "@instructure/quiz-number-input": "20.9.1-rc.6+20c0e2073",
51
- "@instructure/quiz-rce": "20.9.1-rc.6+20c0e2073",
47
+ "@instructure/quiz-common": "20.9.1-rc.7+7d9df0379",
48
+ "@instructure/quiz-i18n": "20.9.1-rc.7+7d9df0379",
49
+ "@instructure/quiz-interactions": "20.9.1-rc.7+7d9df0379",
50
+ "@instructure/quiz-number-input": "20.9.1-rc.7+7d9df0379",
51
+ "@instructure/quiz-rce": "20.9.1-rc.7+7d9df0379",
52
52
  "@instructure/ui-a11y-content": "^8.51.0",
53
53
  "@instructure/ui-alerts": "^8.51.0",
54
54
  "@instructure/ui-avatar": "^8.51.0",
@@ -112,7 +112,7 @@
112
112
  "file-saver": "~2.0.5",
113
113
  "humps": "^2.0.0",
114
114
  "immutable": "^3.8.1",
115
- "instructure-validations": "20.9.1-rc.6+20c0e2073",
115
+ "instructure-validations": "20.9.1-rc.7+7d9df0379",
116
116
  "ipaddr.js": "^1.5.4",
117
117
  "isomorphic-fetch": "^2.2.0",
118
118
  "isuuid": "^0.1.0",
@@ -163,7 +163,7 @@
163
163
  "intl": "^1.2.4",
164
164
  "jquery": "^2.2.3",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "20.9.1-rc.6+20c0e2073",
166
+ "quiz-presets": "20.9.1-rc.7+7d9df0379",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -179,5 +179,5 @@
179
179
  "publishConfig": {
180
180
  "access": "public"
181
181
  },
182
- "gitHead": "20c0e2073b0f835529113e082eadb37f25b68d8a"
182
+ "gitHead": "7d9df037951d6e2565087a758c70b5daafed5eed"
183
183
  }