@seeqdev/qomponents 0.0.155-react-19-v7 → 0.0.155-react-19-v8
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.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4646,6 +4646,13 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4646
4646
|
ref.current = receivedRef;
|
|
4647
4647
|
internalRef.current = receivedRef;
|
|
4648
4648
|
};
|
|
4649
|
+
useEffect(() => {
|
|
4650
|
+
if (autoFocus) {
|
|
4651
|
+
setTimeout(() => {
|
|
4652
|
+
internalRef.current?.focus();
|
|
4653
|
+
}, 0);
|
|
4654
|
+
}
|
|
4655
|
+
}, []);
|
|
4649
4656
|
useEffect(() => {
|
|
4650
4657
|
const input = internalRef.current;
|
|
4651
4658
|
if (input && type !== 'number' && type !== 'email')
|
|
@@ -4685,7 +4692,7 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4685
4692
|
if (minLength)
|
|
4686
4693
|
inputLenghtProp.minLength = minLength;
|
|
4687
4694
|
return (React__default.createElement(React__default.Fragment, null,
|
|
4688
|
-
React__default.createElement("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required,
|
|
4695
|
+
React__default.createElement("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }),
|
|
4689
4696
|
errorText && showError && React__default.createElement("div", { className: "tw-text-sq-danger-color tw-text-xs tw-mt-1" }, errorText)));
|
|
4690
4697
|
});
|
|
4691
4698
|
|