Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputNumber: InputNumberInputEvent add formattedValue #5433

Closed
Anubarak opened this issue Mar 18, 2024 · 0 comments · Fixed by DallinAllred/ezanalytics#11 · May be fixed by jennytoc/mfe-proj#2
Closed

InputNumber: InputNumberInputEvent add formattedValue #5433

Anubarak opened this issue Mar 18, 2024 · 0 comments · Fixed by DallinAllred/ezanalytics#11 · May be fixed by jennytoc/mfe-proj#2
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Anubarak
Copy link

Describe the bug

Could you please add formattedValue to your type declarations

https://github.com/primefaces/primevue/blob/master/components/lib/inputnumber/InputNumber.d.ts#L65

/**
 * Custom input event.
 * @see {@link InputNumberEmits.input}
 */
export interface InputNumberInputEvent {
    /**
     * Browser event
     */
    originalEvent: Event;
    /**
     * New value
     */
    value: string | number | undefined;
}

Your component always adds it https://github.com/primefaces/primevue/blob/master/components/lib/inputnumber/InputNumber.vue#L781

this.$emit('input', { originalEvent: event, value: newValue, formattedValue: currentValue });

same goes for InputNumberBlurEvent

Reproducer

not required

PrimeVue version

3.5.0 (all)

Vue version

3.x

Language

TypeScript

Build / Runtime

TypeScript

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
1 participant