Skip to content

Support live formatting in NumberField #6156

Open
@oscarcarlstrom

Description

@oscarcarlstrom

Provide a general summary of the feature here

I would be very nice to enable live formatting in the RAC NumberField component.

🤔 Expected Behavior?

When a user types the value is formatted while typing.

😯 Current Behavior

The value is currently only formatted when a user blurs (click outside/tab out) the input.

💁 Possible Solution

I would expected this to be the default behavior. But I imagine some developers would like to turn it off. So either a prop liveFormatting?: boolean or a prop noLiveFormatting?: boolean.

🔦 Context

When inputing large numbers (such as when a customer is applying for a loan at a bank), it is much easier for a user to read:
11 500 000, than 11500000 while typing.

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions