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

cant resubmit when input is empty on mobile: debugging #753

Closed
wants to merge 1 commit into from

Conversation

tarasglek
Copy link
Owner

I noticed a weird behavior.
I tried to remove the following

    if (!textValue) {
      return;
    }

from MobilePromptForm.tsx to allow resubmitting. However stuff started to resubmit when clicking the model menu(on mobile).

and added console.log("handlePromptSubmit", e.target); to handlePromptSubmit.

Noticed that we run this code when when clicking on model menu. That seems wrong..Not enough of a chakra expert to understand how this is going wrong

@tarasglek tarasglek closed this Nov 24, 2024
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

Successfully merging this pull request may close these issues.

1 participant