@khanacademy/perseus 0.2.5 → 0.2.6
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 +6 -0
- package/dist/es/index.js +2 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -10
- package/src/widgets/dropdown.jsx +29 -31
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -32318,6 +32318,7 @@ class Dropdown extends React.Component {
|
|
|
32318
32318
|
e.stopPropagation();
|
|
32319
32319
|
}
|
|
32320
32320
|
}, /*#__PURE__*/React.createElement(SingleSelect, {
|
|
32321
|
+
placeholder: "",
|
|
32321
32322
|
onChange: value => this._handleChange(parseInt(value)),
|
|
32322
32323
|
selectedValue: String(this.props.selected),
|
|
32323
32324
|
disabled: this.props.apiOptions.readOnly
|
|
@@ -32336,7 +32337,7 @@ _defineProperty(Dropdown, "defaultProps", {
|
|
|
32336
32337
|
var optionsTransform = widgetOptions => {
|
|
32337
32338
|
return {
|
|
32338
32339
|
placeholder: widgetOptions.placeholder,
|
|
32339
|
-
choices:
|
|
32340
|
+
choices: widgetOptions.choices.map(choice => choice.content)
|
|
32340
32341
|
};
|
|
32341
32342
|
};
|
|
32342
32343
|
|