Problem/Motivation

Poor user experience when accidentally creating blank notes

Steps to reproduce

While adding/editing a note make the prompt blank and click on "OK".

Proposed resolution

Technical Limitation:Browser's native prompt() function doesn't support custom button states or validation.
Add input validation logic and blank prompt to alert: "Oops! Looks like you forgot to add the note text."

Remaining tasks

Add the prompt validation with the alert and raise the PR.

User interface changes

A new alert for prompt's input validation.

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

neerajsingh created an issue. See original summary.

neerajsingh’s picture

Assigned: Unassigned » neerajsingh

  • neerajsingh committed a676b6b0 on 1.0.x
    Issue #3545723 by neerajsingh: Add validation to prevent creation of...
neerajsingh’s picture

Assigned: neerajsingh » Unassigned
Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.