Skip to content

Input Number: Decimal number with suffix breaks #8158

@SeverinPeter92

Description

@SeverinPeter92

Describe the bug

When ussing a suffix with an empty space (like " mm") and a decimal number the parser fails to correctly parse the value and causes it to give back an empty string in certain cases

Pull Request Link

#8157

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/aq9fepgz?file=src%2FApp.vue

Environment

Any Enviroment

Vue version

^3.5.21

PrimeVue version

^4.3.9

Node version

22.17.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Select complete input value
  2. Write a number
  3. Provided value vanishes

Expected behavior

After selecting the complete input and inputing a number the resulting input value should contain the provided number with the suffix.

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