Skip to content

Commit 9415434

Browse files
authored
TextInput - keyboardType="number-pad" with external keyboard (#2978)
1 parent 479ee0b commit 9415434

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/ios/reactnativeuilib/keyboardtrackingview/ObservingInputAccessoryViewTemp.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ - (void)_keyboardDidShowNotification:(NSNotification*)notification
129129
{
130130
_keyboardState = KeyboardStateShown;
131131

132-
[self invalidateIntrinsicContentSize];
132+
if (_keyboardHeight > 0) { //prevent triggering observeValueForKeyPath if an external keyboard is in use
133+
[self invalidateIntrinsicContentSize];
134+
}
133135
}
134136

135137
- (void)_keyboardWillHideNotification:(NSNotification*)notification

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-native",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"homepage": "https://github.com/wix/react-native-ui-lib",
55
"description": "uilib native components (separated from js components)",
66
"main": "components/index.js",

0 commit comments

Comments
 (0)