Comparing version 1.6.4 to 1.7.0
@@ -67,3 +67,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
var iconNode = _typeof(allowClear) === 'object' && allowClear !== null && allowClear !== void 0 && allowClear.clearIcon ? allowClear.clearIcon : '✖'; | ||
clearIcon = /*#__PURE__*/React.createElement("span", { | ||
clearIcon = /*#__PURE__*/React.createElement("button", { | ||
onClick: function onClick(event) { | ||
@@ -79,5 +79,3 @@ handleReset === null || handleReset === void 0 || handleReset(event); | ||
}, | ||
className: clsx(clearIconCls, _defineProperty(_defineProperty({}, "".concat(clearIconCls, "-hidden"), !needClear), "".concat(clearIconCls, "-has-suffix"), !!suffix)), | ||
role: "button", | ||
tabIndex: -1 | ||
className: clsx(clearIconCls, _defineProperty(_defineProperty({}, "".concat(clearIconCls, "-hidden"), !needClear), "".concat(clearIconCls, "-has-suffix"), !!suffix)) | ||
}, iconNode); | ||
@@ -84,0 +82,0 @@ } |
@@ -77,3 +77,3 @@ "use strict"; | ||
var iconNode = (0, _typeof2.default)(allowClear) === 'object' && allowClear !== null && allowClear !== void 0 && allowClear.clearIcon ? allowClear.clearIcon : '✖'; | ||
clearIcon = /*#__PURE__*/_react.default.createElement("span", { | ||
clearIcon = /*#__PURE__*/_react.default.createElement("button", { | ||
onClick: function onClick(event) { | ||
@@ -89,5 +89,3 @@ handleReset === null || handleReset === void 0 || handleReset(event); | ||
}, | ||
className: (0, _classnames.default)(clearIconCls, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(clearIconCls, "-hidden"), !needClear), "".concat(clearIconCls, "-has-suffix"), !!suffix)), | ||
role: "button", | ||
tabIndex: -1 | ||
className: (0, _classnames.default)(clearIconCls, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(clearIconCls, "-hidden"), !needClear), "".concat(clearIconCls, "-has-suffix"), !!suffix)) | ||
}, iconNode); | ||
@@ -94,0 +92,0 @@ } |
{ | ||
"name": "rc-input", | ||
"version": "1.6.4", | ||
"version": "1.7.0", | ||
"description": "React input component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73717
1324