We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d682cf6 commit c7dc019Copy full SHA for c7dc019
packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
@@ -451,7 +451,7 @@ - (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range
451
}
452
453
454
- if (props.maxLength != std::numeric_limits<int>::max()) {
+ if (props.maxLength < std::numeric_limits<int>::max()) {
455
NSInteger allowedLength = props.maxLength - _backedTextInputView.attributedText.string.length + range.length;
456
457
if (allowedLength > 0 && text.length > allowedLength) {
0 commit comments