pheralb / slug

🌱 An open-source URL shortener built with T3 Stack.
https://slug.vercel.app
GNU General Public License v3.0
595 stars 59 forks source link

Fallo de validación en el input del "Short link" (modal de edición) #25

Open JaimeGarcia94 opened 6 months ago

JaimeGarcia94 commented 6 months ago

Me he percatado que si eliminas la clase disabled del input "Short Link", en el modal de edición, te deja guardar el valor en base de datos y no te arroja ningún error de validación por parte del backend.

Me he creado un nuevo link llamado: "/qqqqqqq"

slug1

Si me dirijo al modal de edición y elimino la clase "disabled" me habilita el input para poder modificar el texto

slug2

Entiendo que el input será reactivo por lo tanto si guardas se modifica en el panel de links, pero no en el del modal de edición:

slug3

Pero si refrescas la página y vuelves a abrir el modal de edición si que cambia la url:

slug4

Espero que haya servido de ayuda.

Un saludo

achrafrzz1 commented 6 months ago

Screenshot 2024-04-11 at 7 28 26 AM Hey , This process is very normal. When you try to change it by entering a new short name in the place of the document and you save, the link will work on the new short name. And from that, when you challenge the page, and you are surprised to update the link, you will find that the old name has been removed and the new short name has been added.