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

[base-ui][NumberInput] Remove inputId and inputRef types from NumberInput component #40425

Merged
merged 12 commits into from
Jan 10, 2024
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as React from 'react';
import { Unstable_NumberInput as NumberInput } from '@mui/base/Unstable_NumberInput';

/* @ts-expect-error - inputId shouldn't be available on NumberInput */
<NumberInput inputId="" />;

/* @ts-expect-error - inputRef shouldn't be available on NumberInput */
<NumberInput inputRef={{}} />;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export interface NumberInputRootSlotPropsOverrides {}
export interface NumberInputInputSlotPropsOverrides {}
export interface NumberInputStepperButtonSlotPropsOverrides {}

export type NumberInputOwnProps = Omit<UseNumberInputParameters, 'error'> & {
export type NumberInputOwnProps = Omit<
UseNumberInputParameters,
'error' | 'inputId' | 'inputRef'
> & {
/**
* Trailing adornment for this input.
*/
Expand Down