@khanacademy/perseus-editor 18.0.1 → 18.2.0
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/dist/es/index.js +10 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/es/index.js
CHANGED
|
@@ -95,7 +95,7 @@ const addLibraryVersionToPerseusDebug = (libraryName, libraryVersion) => {
|
|
|
95
95
|
|
|
96
96
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
97
97
|
const libName = "@khanacademy/perseus-editor";
|
|
98
|
-
const libVersion = "18.0
|
|
98
|
+
const libVersion = "18.2.0";
|
|
99
99
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
100
100
|
|
|
101
101
|
const devices = {
|
|
@@ -18810,7 +18810,10 @@ class RadioEditor extends React.Component {
|
|
|
18810
18810
|
this.props.onChange({
|
|
18811
18811
|
choices: choices,
|
|
18812
18812
|
numCorrect: deriveNumCorrect(_extends({}, this.props, {
|
|
18813
|
-
choices
|
|
18813
|
+
choices,
|
|
18814
|
+
// When deriving numCorrect, we don't want to pass the current value,
|
|
18815
|
+
// as it has changed.
|
|
18816
|
+
numCorrect: undefined
|
|
18814
18817
|
}))
|
|
18815
18818
|
});
|
|
18816
18819
|
};
|
|
@@ -18898,7 +18901,11 @@ class RadioEditor extends React.Component {
|
|
|
18898
18901
|
displayCount,
|
|
18899
18902
|
hasNoneOfTheAbove,
|
|
18900
18903
|
deselectEnabled,
|
|
18901
|
-
numCorrect: deriveNumCorrect(this.props
|
|
18904
|
+
numCorrect: deriveNumCorrect(_extends({}, this.props, {
|
|
18905
|
+
// When deriving numCorrect, we don't want to pass the current value,
|
|
18906
|
+
// as it has changed.
|
|
18907
|
+
numCorrect: undefined
|
|
18908
|
+
}))
|
|
18902
18909
|
};
|
|
18903
18910
|
}
|
|
18904
18911
|
render() {
|