@elementor/editor-controls 4.1.0-748 → 4.1.0-749
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/html-tag-control.tsx +14 -6
package/dist/index.mjs
CHANGED
|
@@ -3744,14 +3744,20 @@ var ConditionalControlInfotip = React66.forwardRef(
|
|
|
3744
3744
|
|
|
3745
3745
|
// src/controls/html-tag-control.tsx
|
|
3746
3746
|
var StyledSelect = styled6(Select2)(() => ({ ".MuiSelect-select.Mui-disabled": { cursor: "not-allowed" } }));
|
|
3747
|
-
var HtmlTagControl = createControl((
|
|
3747
|
+
var HtmlTagControl = createControl((props) => {
|
|
3748
|
+
const {
|
|
3749
|
+
options,
|
|
3750
|
+
onChange,
|
|
3751
|
+
fallbackLabels = {},
|
|
3752
|
+
context: { elementId }
|
|
3753
|
+
} = props;
|
|
3748
3754
|
const { value, setValue, disabled, placeholder } = useBoundProp(stringPropTypeUtil8);
|
|
3749
3755
|
const handleChange = (event) => {
|
|
3750
3756
|
const newValue = event.target.value || null;
|
|
3751
3757
|
onChange?.(newValue, value);
|
|
3752
3758
|
setValue(newValue);
|
|
3753
3759
|
};
|
|
3754
|
-
const elementLabel = getElementLabel() ?? "element";
|
|
3760
|
+
const elementLabel = getElementLabel(elementId) ?? "element";
|
|
3755
3761
|
const infoTipProps = {
|
|
3756
3762
|
title: __24("HTML Tag", "elementor"),
|
|
3757
3763
|
/* translators: %s is the element name. */
|
|
@@ -3785,7 +3791,7 @@ var HtmlTagControl = createControl(({ options, onChange, fallbackLabels = {} })
|
|
|
3785
3791
|
disabled,
|
|
3786
3792
|
fullWidth: true
|
|
3787
3793
|
},
|
|
3788
|
-
options.map(({ label, ...
|
|
3794
|
+
options.map(({ label, ...itemProps }) => /* @__PURE__ */ React67.createElement(MenuListItem3, { key: itemProps.value, ...itemProps, value: itemProps.value ?? "" }, label))
|
|
3789
3795
|
)));
|
|
3790
3796
|
});
|
|
3791
3797
|
|