@khanacademy/perseus-editor 14.10.1 → 14.10.3

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/index.js CHANGED
@@ -98,7 +98,7 @@ var arrowCounterClockwise__default = /*#__PURE__*/_interopDefaultLegacy(arrowCou
98
98
 
99
99
  // This file is processed by a Rollup plugin (replace) to inject the production
100
100
  const libName = "@khanacademy/perseus-editor";
101
- const libVersion = "14.10.1";
101
+ const libVersion = "14.10.3";
102
102
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
103
103
 
104
104
  function _extends() {
@@ -35573,6 +35573,14 @@ class LabelImageEditor extends React__namespace.Component {
35573
35573
  if (url) {
35574
35574
  perseus.Util.getImageSize(url, (width, height) => {
35575
35575
  this.props.onChange({
35576
+ /**
35577
+ * Sending `imageUrl` up again
35578
+ * (even though we did so at the beginning of handleImageChange)
35579
+ * because we ran into a race condition (LEMS-2583) where
35580
+ * `imageUrl` was getting set to an empty string if measuring
35581
+ * happened too fast.
35582
+ */
35583
+ imageUrl: url,
35576
35584
  imageWidth: width,
35577
35585
  imageHeight: height
35578
35586
  });