widenarrow-ui 1.1.53 → 1.1.54
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/lib/index.esm.js
CHANGED
|
@@ -3456,7 +3456,7 @@ var s$1 = classNames.bind(styles$1);
|
|
|
3456
3456
|
var SelectInput = function (_a) {
|
|
3457
3457
|
var _b, _c, _d;
|
|
3458
3458
|
var label = _a.label, _e = _a.withLabel, withLabel = _e === void 0 ? true : _e, inputRef = _a.inputRef, _f = _a.nativeHtmlComponent, nativeHtmlComponent = _f === void 0 ? true : _f, _g = _a.size, size = _g === void 0 ? SizeTypes.MEDIUM : _g, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, ariaLabel = _a.ariaLabel, id = _a.id, onChange = _a.onChange, defaultOption = _a.defaultOption, value = _a.value, error = _a.error, helperText = _a.helperText, options = _a.options, disabled = _a.disabled, loading = _a.loading, className = _a.className, inputClassName = _a.inputClassName, marginBottom = _a.marginBottom;
|
|
3459
|
-
var htmlId = useMemo(function () { return "".concat(id)
|
|
3459
|
+
var htmlId = useMemo(function () { return (id ? "".concat(id) : shortUid()); }, []);
|
|
3460
3460
|
var inputAttributes = (_b = {
|
|
3461
3461
|
ref: inputRef,
|
|
3462
3462
|
id: htmlId,
|