Skip to content

Change button type to submit for all forms#4

Open
jnbn wants to merge 1 commit into
stoffelio:mainfrom
jnbn:main
Open

Change button type to submit for all forms#4
jnbn wants to merge 1 commit into
stoffelio:mainfrom
jnbn:main

Conversation

@jnbn
Copy link
Copy Markdown

@jnbn jnbn commented Feb 3, 2026

Problem

The “Clear” and “Clear All” buttons in the Cache Controller widget do nothing when clicked. The forms are never submitted, so no cache is cleared.

Cause

Buttons were changed to type="button" (in 45243e8). In HTML, type="button" explicitly does not submit the form. Only type="submit" (or omitting type, which defaults to submit) will submit the form when the button is clicked.

Solution

  • Use type="submit" for all buttons that should submit their form: each “Clear” button and the “Clear All” button.

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