@evergis/react 3.1.89 → 3.1.90

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.js CHANGED
@@ -7799,13 +7799,13 @@ const ElementControl = ({ elementConfig }) => {
7799
7799
  }, [control?.targetAttributeName, layerInfo?.configuration?.attributesConfiguration?.attributes]);
7800
7800
  const handleChange = React.useCallback(([option]) => {
7801
7801
  setValue(option?.value);
7802
- if (attributeName && changeControls) {
7802
+ if (control?.targetAttributeName && changeControls) {
7803
7803
  changeControls({
7804
- [attributeName]: option?.value,
7804
+ [control.targetAttributeName]: option?.value,
7805
7805
  });
7806
7806
  }
7807
- }, [changeControls, attributeName]);
7808
- return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[attributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
7807
+ }, [changeControls, control?.targetAttributeName]);
7808
+ return (jsxRuntime.jsx(uilibGl.Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[control?.targetAttributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
7809
7809
  };
7810
7810
 
7811
7811
  const StyledIconFontSizeMixin = styled.css `
package/dist/react.esm.js CHANGED
@@ -7797,13 +7797,13 @@ const ElementControl = ({ elementConfig }) => {
7797
7797
  }, [control?.targetAttributeName, layerInfo?.configuration?.attributesConfiguration?.attributes]);
7798
7798
  const handleChange = useCallback(([option]) => {
7799
7799
  setValue(option?.value);
7800
- if (attributeName && changeControls) {
7800
+ if (control?.targetAttributeName && changeControls) {
7801
7801
  changeControls({
7802
- [attributeName]: option?.value,
7802
+ [control.targetAttributeName]: option?.value,
7803
7803
  });
7804
7804
  }
7805
- }, [changeControls, attributeName]);
7806
- return (jsx(Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[attributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
7805
+ }, [changeControls, control?.targetAttributeName]);
7806
+ return (jsx(Dropdown, { zIndex: 1000, width: `${width ?? DEFAULT_DROPDOWN_WIDTH}px`, label: label, options: items, value: controls?.[control?.targetAttributeName] ?? value ?? attribute?.value ?? defaultValue, placeholder: placeholder, disabled: isDisabled, onChange: handleChange }));
7807
7807
  };
7808
7808
 
7809
7809
  const StyledIconFontSizeMixin = css `
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.89",
2
+ "version": "3.1.90",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -83,5 +83,5 @@
83
83
  "swiper": "^8.3.2",
84
84
  "wkt": "^0.1.1"
85
85
  },
86
- "gitHead": "2badfc31f3825666f28477a501eb7a76d34667e8"
86
+ "gitHead": "08adf7936d1a6a6633de089d3547b683430d28e6"
87
87
  }