widenarrow-ui 1.1.68 → 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,
|
|
@@ -3419,7 +3421,7 @@ var SortableTable = function (_a) {
|
|
|
3419
3421
|
if (!isArrayWithContent(data) || !optionIsActive) {
|
|
3420
3422
|
return false;
|
|
3421
3423
|
}
|
|
3422
|
-
return path([0, 'keyName'],
|
|
3424
|
+
return path([0, 'keyName'], currentSortState) === cell.key;
|
|
3423
3425
|
};
|
|
3424
3426
|
if (cell.disableSort) {
|
|
3425
3427
|
return (jsx(Heading, { type: 'h6', marginBottom: '0', withEllipsis: true, children: cell.title }));
|