Skip to content

Commit d8fcfdf

Browse files
committed
allow user override TextField pointerEvents
1 parent d03f1f3 commit d8fcfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/inputs/TextField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ export default class TextField extends BaseInput {
507507
return (
508508
<RNTextInput
509509
accessibilityLabel={floatingPlaceholder ? placeholder : undefined}
510+
pointerEvents={expandable ? 'none' : undefined}
510511
{...others}
511512
accessibilityStates={this.isDisabled() ? ['disabled'] : undefined}
512513
value={value}
@@ -525,7 +526,6 @@ export default class TextField extends BaseInput {
525526
this.input = input;
526527
}}
527528
editable={isEditable}
528-
pointerEvents={expandable ? 'none' : undefined}
529529
/>
530530
);
531531
}

0 commit comments

Comments
 (0)