Skip to content

Calendar: The Calendar should block unnecessary or invalid characters. #8502

@akshayaqburst

Description

@akshayaqburst

Describe the bug

Image

Calendar: The Calendar should block unnecessary or invalid characters. Screenshot attached.

Reproducer

No response

System Information

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 929.05 MB / 15.41 GB
  Binaries:
    Node: 22.21.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.15.0 - C:\Users\AkshayAntony\AppData\Roaming\npm\pnpm.CMD    
  Browsers:
    Chrome: 144.0.7559.133
    Edge: Chromium (140.0.3485.54)
    Firefox: 147.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe       
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  1. Go to https://primereact.org/calendar/#basic
  2. Try choosing a date.
  3. Try updating the input box with unnecessary characters as shown in screenshot.
  4. The input box accepts the characters.

Expected behavior

The input box in Calendar component shouldn't accept unnecessary characters.
Should Intercept letters and other invalid characters before they're inserted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions