@ucloud-fe/react-components 1.3.2 → 1.3.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/CHANGELOG.md +6 -0
- package/dist/main.min.js +1 -1
- package/lib/components/Input/Input.js +2 -0
- package/package.json +1 -1
|
@@ -133,6 +133,8 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
133
133
|
var _inputRef$current;
|
|
134
134
|
|
|
135
135
|
(0, _newArrowCheck2.default)(this, _this2);
|
|
136
|
+
// 避免影响输入框的选中、移动光标等操作
|
|
137
|
+
if (e.target === inputRef.current) return;
|
|
136
138
|
e.preventDefault();
|
|
137
139
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
138
140
|
}.bind(this), []);
|