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.
package/dist/esm/index.js CHANGED
@@ -21829,7 +21829,9 @@ var Search = /*#__PURE__*/forwardRef(function (props, ref) {
21829
21829
  }
21830
21830
  }
21831
21831
  function handleSearch() {
21832
- onSearch(value);
21832
+ if (!props.isLoading) {
21833
+ onSearch(value);
21834
+ }
21833
21835
  }
21834
21836
  function handleClear() {
21835
21837
  onClear && typeof onClear === 'function' && onClear();
@@ -21843,7 +21845,7 @@ var Search = /*#__PURE__*/forwardRef(function (props, ref) {
21843
21845
  isInverse: useIsInverse(props.isInverse),
21844
21846
  onChange: handleChange,
21845
21847
  onClear: handleClear,
21846
- onIconClick: props.isPredictive ? null : isLoading ? null : handleSearch,
21848
+ onIconClick: props.isPredictive ? null : handleSearch,
21847
21849
  onKeyDown: handleKeyPress,
21848
21850
  placeholder: placeholder ? placeholder : i18n.search.input.placeholder,
21849
21851
  type: InputType.search,