@khanacademy/perseus 1.3.5 → 1.3.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 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/input-number.jsx +2 -2
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -23246,12 +23246,12 @@ class InputNumber extends React.Component {
|
|
|
23246
23246
|
|
|
23247
23247
|
var inputStyles = [styles$z.default, this.props.size === "small" ? styles$z.small : null, this.props.rightAlign ? styles$z.rightAlign : styles$z.leftAlign]; // Correct
|
|
23248
23248
|
|
|
23249
|
-
if (rubric && correct && this.props.currentValue) {
|
|
23249
|
+
if (rubric && correct === true && this.props.currentValue) {
|
|
23250
23250
|
inputStyles.push(styles$z.answerStateCorrect);
|
|
23251
23251
|
} // Incorrect
|
|
23252
23252
|
|
|
23253
23253
|
|
|
23254
|
-
if (rubric &&
|
|
23254
|
+
if (rubric && correct === false && this.props.currentValue) {
|
|
23255
23255
|
inputStyles.push(styles$z.answerStateIncorrect);
|
|
23256
23256
|
} // Unanswered
|
|
23257
23257
|
|