Open
Conversation
…HTML5 - Implementa handler global em base.html que reabilita botões de submit em todos os formulários ao retornar via back/forward cache (bfcache), ao ocorrer falha de validação HTML5 ou quando o submit é barrado. - Evita que o botão permaneça desabilitado, melhorando a usabilidade e compatibilidade cross-browser. - Permite exceções via atributo data-keep-disabled para casos especiais. Para exceções, marcar o botão com o atributo data-keep-disabled. closes interlegis#3350, closes interlegis#2440
78b84e2 to
a2132d8
Compare
6a6f002 to
10691ac
Compare
f92c461 to
3faba84
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(frontend): reabilita botões de submit após navegação e validação HTML5
Closes #3350, closes #2440
Motivação e Contexto
A navegação via “voltar” no Firefox e falhas de validação HTML5 estavam causando o travamento dos botões de submit, exigindo F5 para nova pesquisa. Esta solução centraliza a correção, sem necessidade de alterar cada template individualmente, melhorando a experiência do usuário e a compatibilidade entre navegadores.
Como foi testado
Tipo de mudança
Checklist