-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard Hides when sidemenu appears but after closing side menu keyboard appears again. #570
Comments
Did you find any solution. I am facing same issue and did not find any solution. |
@jonkykong is there any solution for this behaviour?? |
|
It was the very first thing i tried |
@rehmanateeq No i have tried many things but cant find any way of doing this. So i have disabled the pan gesture and currently having sidemenu only from tapping the side menu button. So logically calling end editing in them should work fine but it is not working. |
Anyone find an update for this? I am experiencing the same thing :( |
For me issue occurred when: I clicked textField and then opened new ViewController by selecting another SideMenu option. Then there was black view at bottom. Below solution worked for me. self.dismiss(animated: true) { () -> Void in I found this on one of Issue: I was not dismissing my SideMenu while pushing another ViewController. So when I did dismiss SideMenu and on its completion then I pushed my ViewController. It resolved the issue for me. P.S.: I am using customNavigationController so that it will not push ViewController on SideMenuNavigationController. |
This Fixed my issue. Thanks |
Just dismiss Side Menu before pushing/showing another controller |
@aherpooja can you please provide a proper example with original code . |
@Piyush-Sharma-Pandit When you select any menu option from Side menu before pushing/presenting another view controller first dismiss Side menu. self.dismiss(animated: true) { () -> Void in |
@aherpooja How did you create the sample customNavigationController? Can you share please? |
I also ran into this problem. It appears that UIKit tries to remember if the keyboard is visible when a view controller is shown over another view controller and then closes the keyboard. When the front view controller goes away it restores the keyboard if it was showing. To avoid this problem you have to close the keyboard before showing the side menu. Once the side menu starts to become visible it's too late to prevent UIKit from this process of saving and restoring the keyboard state. I worked around this by closing the keyboard from a custom back button before showing the side menu. This code uses some other methods of mine but you get the idea.
There is some code in |
@phoney feel free to propose a more robust solution directly to the source code that alleviates this issue. |
Any update |
|
I have read the guidelines for contributing and I understand
Describe the bug
The bug is Keyboard Hides when sidemenu appears but after closing side menu keyboard appears again. normally this thing does not cause any problem at all. but the only big problem occurs while going to other view from side menu. more explaination in "To Reproduce".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
![Screenshot 2019-10-21 at 4 02 21 PM](https://user-images.githubusercontent.com/40310604/67198284-4d9e6a80-f41c-11e9-86e5-13cdbfccf3a6.png)
![Screenshot 2019-10-21 at 4 02 37 PM](https://user-images.githubusercontent.com/40310604/67198292-51ca8800-f41c-11e9-860d-535015426eb6.png)
![Screenshot 2019-10-21 at 4 02 49 PM](https://user-images.githubusercontent.com/40310604/67198300-54c57880-f41c-11e9-9854-fd59306053e3.png)
Note:= if i do all this without opening keyboard in starting than it works fine.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: