@codeleap/web 3.21.7 → 3.21.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "3.21.7",
3
+ "version": "3.21.8",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -117,6 +117,10 @@ export const TextInputComponent = forwardRef<InputRef, TextInputProps>((props, i
117
117
  useImperativeHandle(inputRef, () => {
118
118
  return {
119
119
  focus: () => {
120
+ if (isMasked) {
121
+ innerInputRef.current?.getInputDOMNode()?.focus()
122
+ }
123
+
120
124
  innerInputRef.current?.focus?.()
121
125
  },
122
126
  isTextInput: true,
@@ -221,7 +225,9 @@ export const TextInputComponent = forwardRef<InputRef, TextInputProps>((props, i
221
225
  innerWrapperProps={{
222
226
  ...(inputBaseProps.innerWrapperProps || {}),
223
227
  [inputBaseAction]: () => {
224
- // if (isMasked) innerInputRef.current?.onFocus?.()
228
+ if (isMasked) {
229
+ innerInputRef.current?.getInputDOMNode()?.focus()
230
+ }
225
231
  innerInputRef.current?.focus?.()
226
232
  if (isPressable) onPress?.()
227
233
  },