@khanacademy/math-input 17.2.2 → 17.3.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 CHANGED
@@ -17,7 +17,7 @@ import PropTypes from 'prop-types';
17
17
 
18
18
  // This file is processed by a Rollup plugin (replace) to inject the production
19
19
  const libName = "@khanacademy/math-input";
20
- const libVersion = "17.2.2";
20
+ const libVersion = "17.3.0";
21
21
  addLibraryVersionToPerseusDebug(libName, libVersion);
22
22
 
23
23
  function _extends() {
@@ -4510,6 +4510,13 @@ const KeypadButton = ({
4510
4510
  testId: keyConfig.id
4511
4511
  }, /*#__PURE__*/React.createElement(Clickable, {
4512
4512
  onClick: e => onClickKey(keyConfig.id, e),
4513
+ onMouseDown: e =>
4514
+ // Prevent the default behavior of forcing the focus to the
4515
+ // button when it is clicked. This way, the focus can
4516
+ // remain on the input field-- for mouse only. The focus
4517
+ // should still shift for keyboard nav.
4518
+ // (The focus shift happens on mouse down, not on click.)
4519
+ e.preventDefault(),
4513
4520
  style: styles$4.clickable,
4514
4521
  "aria-label": keyConfig.ariaLabel
4515
4522
  }, ({