Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

Commit 5f57b87

Browse files
committed
Merge pull request #125 from jonhainstock/master
Closes #124
2 parents 4530f69 + c04f9ad commit 5f57b87

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ios/IonicKeyboard.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,19 @@ - (void) disableScroll:(CDVInvokedUrlCommand*)command {
124124
return;
125125
}
126126
id value = [command.arguments objectAtIndex:0];
127-
128-
self.disableScroll = [value boolValue];
127+
if (value != [NSNull null]) {
128+
self.disableScroll = [value boolValue];
129+
}
129130
}
130131

131132
- (void) hideKeyboardAccessoryBar:(CDVInvokedUrlCommand*)command {
132133
if (!command.arguments || ![command.arguments count]){
133134
return;
134135
}
135136
id value = [command.arguments objectAtIndex:0];
136-
137-
self.hideKeyboardAccessoryBar = [value boolValue];
137+
if (value != [NSNull null]) {
138+
self.hideKeyboardAccessoryBar = [value boolValue];
139+
}
138140
}
139141

140142
- (void) close:(CDVInvokedUrlCommand*)command {

0 commit comments

Comments
 (0)