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

Textinput doesn't get cleared [bubbletea tutorial] #90

Open
ev-agelos opened this issue Nov 24, 2024 · 0 comments
Open

Textinput doesn't get cleared [bubbletea tutorial] #90

ev-agelos opened this issue Nov 24, 2024 · 0 comments

Comments

@ev-agelos
Copy link

Hi and thanks for the nice tutorial!

I was following it coding along side and found that:
the below 3 lines should be textinput instead of textarea (to clear the title, btw I think it is not needed since it changes to bodyView but I guess it is good to have it)

m.textarea.SetValue("")
m.textarea.Focus()
m.textarea.CursorEnd()

and in line 123 in the video you had m.currNote = Note{} and in the code not (just mentioning it not that is an error):

}
m.state = listView
case "esc":

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

1 participant