sales-frontend-design-system 0.0.139 → 0.0.140
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.cjs.js +2 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -1591,12 +1591,11 @@ const ComboBoxItem = ({
|
|
|
1591
1591
|
validator,
|
|
1592
1592
|
value,
|
|
1593
1593
|
onValueChange,
|
|
1594
|
-
inputMode = "none",
|
|
1595
1594
|
...props
|
|
1596
1595
|
}) => {
|
|
1597
1596
|
const inputRef = React.useRef(null);
|
|
1598
1597
|
const { errorState, setForceUpdate } = useFormValidator({ validator, name });
|
|
1599
|
-
const { disabled, error, readOnly
|
|
1598
|
+
const { disabled, error, readOnly, size, ...rest } = useFieldControl(props);
|
|
1600
1599
|
const { handleClick, handleKeyDown } = usePreventInteraction({ disabled, readOnly });
|
|
1601
1600
|
const handleKeyDownEvent = (e) => {
|
|
1602
1601
|
if (e.key === " " || e.key === "Enter") {
|
|
@@ -1620,8 +1619,7 @@ const ComboBoxItem = ({
|
|
|
1620
1619
|
ref: inputRef,
|
|
1621
1620
|
type: type ?? "text",
|
|
1622
1621
|
name,
|
|
1623
|
-
readOnly,
|
|
1624
|
-
inputMode,
|
|
1622
|
+
readOnly: true,
|
|
1625
1623
|
onClick: handleClick(handleOnClick),
|
|
1626
1624
|
onKeyDown: handleKeyDown(handleKeyDownEvent),
|
|
1627
1625
|
role: "combobox",
|