Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The cursor focus in the input field is behaving abnormally. #322

Open
DayDayHappy666 opened this issue Feb 21, 2025 · 0 comments
Open

The cursor focus in the input field is behaving abnormally. #322

DayDayHappy666 opened this issue Feb 21, 2025 · 0 comments

Comments

@DayDayHappy666
Copy link

When entering text during an abnormal situation, the cursor jumps between the first and second positions. Testing reveals that this is due to the cursor being inverted. If you start typing from the end, it behaves like typing normally from the first position. However, if you type from the beginning, it seems to treat it as jumping back to the end, returning to its original position.

My version and code are as follows:
"react-native-otp-inputs": "^7.4.0",

<OtpInputs
           ref={this.otpRef}
            handleChange={handleTextChange}
            keyboardType={keyboardType}
            numberOfInputs={inputCount}
            selectTextOnFocus={true}
            style={[styles.container, containerStyle]}
            inputStyles={[styles.textInput, textInputStyle]}
            selectionColor={tintColor}
            focusStyles={{ borderColor: tintColor ?? CommonStyle.color.textBlueColor }}
            inputContainerStyles={[styles.inputContainer, { borderColor: offTintColor }]}
        />
default.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant