Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Submitted forms don't carry the "submitter" attribute

Abierto
#709 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
elixir
Área
backend

Línea de trabajo

Reproduce the issue with Surface Form components and two named submit buttons using the provided example, then trace the form submission handling. Done means the params map includes submit=save or submit=submit according to the button clicked, matching native Phoenix LiveView behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

Phoenix gained the ability to distinguish between which submit button was clicked in https://github.com/phoenixframework/phoenix_live_view/pull/2490. Unfortunately, this doesn't work with the default way surface handles form submit.

How to reproduce it

  1. Create a form using <Form> components, with 2 submit buttons. Ensure the submit buttons have a name and value attribute set
    <Form
      for={@changeset}
      trigger_action={false}
      submit="submit"
      change="change"
    >
      <button type="submit" name="submit" value="submit">Submit</button>
      <button type="submit" name="submit" value="save">save</button>
    </Form>
    
  2. Attempt to submit the form using either button. You will not see the submit as a value in the params map

The behavior you expected

I should see the submit value as either save or submit, depending on the button that was clicked. This is how it works in native Phoenix LiveView

Your Environment

Surface: v0.11.0
LiveView: v0.19.5
Elixir: 1.14.4-otp-25

Lenguaje dominante
Elixir
Estrellas
2.1k
Forks
146
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de surface-ui/surface

Todos los issues de surface-ui/surface

Issues similares

Más issues de Elixir

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.