Skip to content
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 reappears after pressing done #15

Open
IraklisElef opened this issue Mar 14, 2023 · 1 comment
Open

Keyboard reappears after pressing done #15

IraklisElef opened this issue Mar 14, 2023 · 1 comment

Comments

@IraklisElef
Copy link

Hello, I have an issue with the library. Whenever I press the done button, the keyboard disappears for a second or two, and then reappears by itself. Whenever that happens, I get a bunch of debug messages. The messages are === AttributeGraph: cycle detected through attribute 804744 === (the attribute number changes on each new message). I also get those messages whenever I press the next button. Any ideas what could be the problem? Thanks in advance!

@Muhammadbarznji
Copy link

there is some creation loop that happens when the view is created, and you call becomeFirstResponder(), which calls the view, which triggers SwiftUI to find the view that it hasn't adequately created yet. so add async to textField.becomeFirstResponder() at FocusModifier struct. fly for any equation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants