Skip to content

Commit 5e769d2

Browse files
committed
Always convert style string to lowercase
1 parent e8cacbf commit 5e769d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ios/CDVKeyboard.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ - (NSString*)keyboardStyle
165165

166166
- (void)setKeyboardStyle:(NSString*)style
167167
{
168+
style = [style lowercaseString];
169+
168170
if ([style isEqualToString:_keyboardStyle]) {
169171
return;
170172
}
@@ -285,9 +287,7 @@ - (void)hideFormAccessoryBar:(CDVInvokedUrlCommand*)command
285287
- (void)keyboardStyle:(CDVInvokedUrlCommand*)command
286288
{
287289
id value = [command.arguments objectAtIndex:0];
288-
if ([value isKindOfClass:[NSString class]]) {
289-
value = [(NSString*)value lowercaseString];
290-
} else {
290+
if (![value isKindOfClass:[NSString class]]) {
291291
value = @"light";
292292
}
293293

0 commit comments

Comments
 (0)