x-ui-design 0.4.15 → 0.4.16

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.esm.js CHANGED
@@ -2863,10 +2863,10 @@ const InputComponent = /*#__PURE__*/forwardRef(({
2863
2863
  onChange: handleChange,
2864
2864
  onKeyDown: handleOnKeyDown,
2865
2865
  className: clsx([prefixCls, className])
2866
- })), /*#__PURE__*/React.createElement("span", {
2866
+ })), allowClear && internalValue ? /*#__PURE__*/React.createElement("span", {
2867
2867
  className: `${prefixCls}-clear`,
2868
2868
  onClick: handleClear
2869
- }, allowClear && internalValue ? /*#__PURE__*/React.createElement(ErrorIcon, null) : null), (suffix || iconRender) && /*#__PURE__*/React.createElement("span", _extends({
2869
+ }, /*#__PURE__*/React.createElement(ErrorIcon, null)) : null, (suffix || iconRender) && /*#__PURE__*/React.createElement("span", _extends({
2870
2870
  className: `${prefixCls}-suffix`
2871
2871
  }, iconRender !== undefined ? {
2872
2872
  onClick: () => setIconRenderVisible(icon => !icon)