openui / openui/open-ui

Form submission confirmation without Javascript

Open
#281 28 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-research needs-triage
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

Before submitting a form that is going to perform a dangerous action such as data deletion it is advisable to ask for confirmation. At present it is necessary to use Javascript to intercept the sending and display the message. The browser could take care of this automatically if the message was indicated on the submit button.

<button type="submit" confirmation-message="Are you sure you want to delete de items?">Delete</button>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue #281 and its 28-comment thread, focusing on the proposed confirmation-message attribute for submit buttons and the no-JavaScript requirement. Check whether the discussion reached a decision; completion would require an agreed browser or web-standard proposal rather than only the example markup.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.