Skip to content

Commit 65c37c8

Browse files
committed
Add scrollbar to multiline TextInput (microsoft#1366)
1 parent 1d26db3 commit 65c37c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ - (void)setEnableFocusRing:(BOOL)enableFocusRing {
106106
- (void)scrollViewDidScroll:(RCTUIScrollView *)scrollView // TODO(macOS ISS#3536887)
107107
{
108108
RCTDirectEventBlock onScroll = self.onScroll;
109-
109+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
110+
[_scrollView setHasVerticalScroller:YES];
111+
#endif // ]TODO(macOS GH#774)
110112
if (onScroll) {
111113
CGPoint contentOffset = scrollView.contentOffset;
112114
CGSize contentSize = scrollView.contentSize;

0 commit comments

Comments
 (0)