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

Crash when multiline TextInput gains focus #2270

Open
jbcullis opened this issue Nov 12, 2024 · 1 comment
Open

Crash when multiline TextInput gains focus #2270

jbcullis opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@jbcullis
Copy link

Environment

react-native -v: 15.0.0
npm ls react-native-macos: [email protected]
node -v: v23.1.0
npm -v: 10.9.0
yarn --version:
xcodebuild -version: Xcode 16.1 Build version 16B40

Steps to reproduce the bug

Create a fresh application, add a multiline textinput:
<TextInput
style={[{
fontWeight: 'bold',
borderWidth: 0,
borderColor: 'transparent',
margin: 0,
backgroundColor: 'yellow',
borderRadius: 5,
color: 'black',
// paddingTop: 16,
// paddingBottom: 16,
// paddingLeft: 10,
// paddingRight: 60,
//opacity: .9,
}]}
onChangeText={(text) => {
setMultiText(text);
}}
value={MultiText}
autoComplete={'off'}
autoCorrect={true}
multiline={true}
underlineColorAndroid='transparent'
editable={true}
/>

If you have padding on the element, it will crash the app when you grab focus.

Expected Behavior

Element should focus and not crash the app.

Actual Behavior

FAULT: NSInternalInconsistencyException: NSWindow: -_oldFirstResponderBeforeBecoming is not a valid message outside of a responder's implementation of -becomeFirstResponder.; (user info absent)

Reproducible Demo

No response

Additional context

No response

@jbcullis jbcullis added the bug Something isn't working label Nov 12, 2024
@Saadnajmi
Copy link
Collaborator

Oof, thanks for the report! We haven't gotten a crash in awhile while 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants