react-magma-dom 4.7.0-next.1 → 4.7.0-next.2

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.
@@ -11075,7 +11075,9 @@ var Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
11075
11075
  }
11076
11076
  }
11077
11077
  function handleSearch() {
11078
- onSearch(value);
11078
+ if (!props.isLoading) {
11079
+ onSearch(value);
11080
+ }
11079
11081
  }
11080
11082
  function handleClear() {
11081
11083
  onClear && typeof onClear === 'function' && onClear();
@@ -11089,7 +11091,7 @@ var Search = /*#__PURE__*/React.forwardRef(function (props, ref) {
11089
11091
  isInverse: useIsInverse(props.isInverse),
11090
11092
  onChange: handleChange,
11091
11093
  onClear: handleClear,
11092
- onIconClick: props.isPredictive ? null : isLoading ? null : handleSearch,
11094
+ onIconClick: props.isPredictive ? null : handleSearch,
11093
11095
  onKeyDown: handleKeyPress,
11094
11096
  placeholder: placeholder ? placeholder : i18n.search.input.placeholder,
11095
11097
  type: exports.InputType.search,