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

Pasting pastes text twice when used with bubbletea #439

Closed
luqmanariffin opened this issue Oct 25, 2024 · 1 comment
Closed

Pasting pastes text twice when used with bubbletea #439

luqmanariffin opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working input

Comments

@luqmanariffin
Copy link

Describe the bug
When using a huh.Form that has a text input field with a bubbletea model, pasting into the text input pastes twice. This does not happen when using text input from bubbles instead.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a huh.Form that has any text input field within a bubbletea model
  2. Copy any text and paste it into the text input field
  3. See error; copied text is pasted twice

Expected behavior
Text is only pasted once

Screenshots
I just added an input field to the bubbletea example for demo
paste

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] N/A
  • Version [e.g. 22] N/A

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] N/A
  • OS: [e.g. iOS8.1] N/A
  • Browser [e.g. stock browser, safari] N/A
  • Version [e.g. 22] N/A

Additional context
This is using the bubbles input example
pastebubble

@caarlos0 caarlos0 added bug Something isn't working input labels Nov 26, 2024
@caarlos0
Copy link
Member

i just tried on main, added a text input to ./examples/bubbletea/main.go, and it worked as expected.

since I can't reproduce, I'll close this.

If this stills happens for you, please provide a minimal, reproducible example.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input
Projects
None yet
Development

No branches or pull requests

2 participants