@zzish/math-rich-input 0.1.23 → 0.1.24
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 +6 -1
- package/package.json +1 -1
- package/src/MathRichInput.jsx +4 -1
package/dist/index.js
CHANGED
|
@@ -22768,7 +22768,12 @@ var MathRichInput = /*#__PURE__*/function (_React$Component) {
|
|
|
22768
22768
|
});
|
|
22769
22769
|
|
|
22770
22770
|
_defineProperty(_assertThisInitialized(_this2), "handleFocus", function (event) {
|
|
22771
|
-
|
|
22771
|
+
var onFocus = _this2.props.onFocus;
|
|
22772
|
+
|
|
22773
|
+
if (onFocus != null) {
|
|
22774
|
+
onFocus();
|
|
22775
|
+
}
|
|
22776
|
+
|
|
22772
22777
|
try {
|
|
22773
22778
|
_this2._setRangeParams(_this2.getOldRangeParams());
|
|
22774
22779
|
|
package/package.json
CHANGED
package/src/MathRichInput.jsx
CHANGED
|
@@ -1815,7 +1815,10 @@ export default class MathRichInput extends React.Component {
|
|
|
1815
1815
|
};
|
|
1816
1816
|
|
|
1817
1817
|
handleFocus = (event) => {
|
|
1818
|
-
|
|
1818
|
+
const { onFocus } = this.props;
|
|
1819
|
+
if (onFocus != null) {
|
|
1820
|
+
onFocus();
|
|
1821
|
+
}
|
|
1819
1822
|
try {
|
|
1820
1823
|
this._setRangeParams(this.getOldRangeParams());
|
|
1821
1824
|
this.setState({ hasFocus: true });
|