Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ - (instancetype)initWithFrame:(CGRect)frame
_didMoveToWindow = NO;
_originalTypingAttributes = [_backedTextInputView.typingAttributes copy];

#if TARGET_OS_OSX // [macOS
[self setClipsToBounds:YES];
#endif // macOS]

[self addSubview:_backedTextInputView];
#if TARGET_OS_IOS // [macOS] [visionOS]
[self initializeReturnKeyType];
Expand Down
Loading