@topconsultnpm/sdkui-react-beta 6.8.26 → 6.8.27

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.
@@ -57,6 +57,12 @@ const TMTextBox = ({ autoFocus, maxLength, labelColor, precision, scale, showCle
57
57
  }
58
58
  }
59
59
  }, [maxValue, currentValue, currentType]);
60
+ // Handle autofocus behavior on mount
61
+ useEffect(() => {
62
+ if (autoFocus && inputRef.current) {
63
+ inputRef.current.focus(); // Focus the input field
64
+ }
65
+ }, [autoFocus]); // This effect runs when the autoFocus prop changes
60
66
  useEffect(() => {
61
67
  if (formulaItems && formulaItems.length > 0) {
62
68
  let menuItems = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.8.26",
3
+ "version": "6.8.27",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",