antd-mobile 5.42.0 → 5.42.1

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.
@@ -172,7 +172,11 @@ const NumberKeyboard = p => {
172
172
  forceRender: props.forceRender
173
173
  }, (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
174
174
  ref: keyboardRef,
175
- className: classPrefix
175
+ className: classPrefix,
176
+ onMouseDown: e => {
177
+ // 点击键盘时,不会触发页面已聚焦元素(如输入框)的 blur 事件
178
+ e.preventDefault();
179
+ }
176
180
  }, renderHeader(), _react.default.createElement("div", {
177
181
  className: `${classPrefix}-wrapper`
178
182
  }, _react.default.createElement("div", {
@@ -163,7 +163,11 @@ export const NumberKeyboard = p => {
163
163
  forceRender: props.forceRender
164
164
  }, withNativeProps(props, React.createElement("div", {
165
165
  ref: keyboardRef,
166
- className: classPrefix
166
+ className: classPrefix,
167
+ onMouseDown: e => {
168
+ // 点击键盘时,不会触发页面已聚焦元素(如输入框)的 blur 事件
169
+ e.preventDefault();
170
+ }
167
171
  }, renderHeader(), React.createElement("div", {
168
172
  className: `${classPrefix}-wrapper`
169
173
  }, React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-mobile",
3
- "version": "5.42.0",
3
+ "version": "5.42.1",
4
4
  "homepage": "https://github.com/ant-design/ant-design-mobile#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/ant-design/ant-design-mobile/issues"