Skip to content

Commit

Permalink
Fixes issue where the text input would not adjust position when the k…
Browse files Browse the repository at this point in the history
…eyboard gets presented right after a view controller presentation (i.e.: when dismissing a UIAlertController of action sheet type) (slackhq#565)

Should fix slackhq#507
  • Loading branch information
Ignacio Romero Zurbuchen authored Feb 13, 2017
1 parent 037bd7f commit 1f586eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ - (void)slk_willShowOrHideKeyboard:(NSNotification *)notification

// Skips if it's not the expected textView and shouldn't force adjustment of the text input bar.
// This will also dismiss the text input bar if it's visible, and exit auto-completion mode if enabled.
if (![currentResponder isEqual:self.textView] && ![self forceTextInputbarAdjustmentForResponder:currentResponder]) {
if (currentResponder && ![currentResponder isEqual:self.textView] && ![self forceTextInputbarAdjustmentForResponder:currentResponder]) {
[self slk_dismissTextInputbarIfNeeded];
return;
}
Expand Down

0 comments on commit 1f586eb

Please sign in to comment.