widenarrow-ui 1.1.69 → 1.1.70
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
|
@@ -3214,8 +3214,9 @@ var TextAreaInput = function (_a) {
|
|
|
3214
3214
|
var htmlId = useMemo(function () { return id || shortUid(); }, []);
|
|
3215
3215
|
var callbackRef = useCallback(function (inputElement) {
|
|
3216
3216
|
if (inputElement && autoFocus) {
|
|
3217
|
-
if (inputElement.focus)
|
|
3217
|
+
if (inputElement.focus) {
|
|
3218
3218
|
inputElement.focus({ preventScroll: true });
|
|
3219
|
+
}
|
|
3219
3220
|
}
|
|
3220
3221
|
// eslint-disable-next-line
|
|
3221
3222
|
}, []);
|
|
@@ -3241,6 +3242,7 @@ var TextAreaInput = function (_a) {
|
|
|
3241
3242
|
readonly: readonly,
|
|
3242
3243
|
id: htmlId,
|
|
3243
3244
|
name: name,
|
|
3245
|
+
autoFocus: autoFocus,
|
|
3244
3246
|
ref: inputRef || callbackRef
|
|
3245
3247
|
},
|
|
3246
3248
|
_b['aria-label'] = ariaLabel || placeholder,
|