Skip to content

Commit 1a00442

Browse files
committed
- Added privateIsEnableAutoToolbar validation before adding the toolbar
1 parent e3727d8 commit 1a00442

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

IQKeyboardManager/IQKeyboardManager.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,11 @@ -(void)adjustPosition
11081108

11091109
if ([superScrollView isKindOfClass:[UITableView class]] || [superScrollView isKindOfClass:[UICollectionView class]])
11101110
{
1111-
//This will update the next/previous states
1112-
[strongSelf addToolbarIfRequired];
1111+
if ([strongSelf privateIsEnableAutoToolbar] == YES)
1112+
{
1113+
//This will update the next/previous states
1114+
[strongSelf addToolbarIfRequired];
1115+
}
11131116
}
11141117
}];
11151118
}

0 commit comments

Comments
 (0)