Login button on /login does not respond to clicks (form.requestSubmit() works)

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start by tracing the login form and ia-button click handling in the repository’s web components; the issue names no source files or tests. Reproduce the Firefox failure and compare clicking the button with the working form.requestSubmit() workaround, then inspect whether the reported console errors affect submission. Done when clicking Log in submits the valid form and the behavior is covered by a regression test.

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

Descripción

Problem

The “Log in” button on [archive.org/login](https://archive.org/login) does nothing when clicked. The form is valid and can be submitted programmatically, but the button’s click handler never fires. Console shows multiple Google Sign-In / CSP / CORS errors on page load that appear related.

Reproducing the bug
  1. Go to [archive.org/login](https://archive.org/login)
  2. Enter a valid email and password
  3. Click the “Log in” button
  • Expected behavior: Form submits and the user is logged in
  • Actual behavior: Nothing happens. No network request, no error message

Workaround that succeeds in the console:

document.querySelector('app-root').shadowRoot
  .querySelector('login-page').shadowRoot
  .querySelector('form')
  .requestSubmit();

Calling .click() on the ia-button class="submit-btn" also does nothing.

Context
  • Browser (Chrome, Safari, Firefox, etc): Firefox
  • OS (Windows, Mac, etc): Windows
  • Logged in (Y/N): N
  • Environment (prod, dev, local): prod

Relevant console errors on load include CSP blocks on inline scripts, google.accounts.id.initialize() called multiple times, CORS failures to play.google.com/log, and MIME-type issues from apollo.archive.org. The button is an ia-button class="submit-btn" inside nested shadow roots under app-root, login-page.

Breakdown
Implementation Details (for maintainers)
Requirements Checklist
Related files
Stakeholders

Instructions for Contributors
  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
Lenguaje dominante
TypeScript
Estrellas
18
Forks
5
Merge medio
1 d 16 h
PR fusionados (30 d)
15

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 internetarchive/elements

Todos los issues de internetarchive/elements

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.