Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Dec 13, 2024
1 parent c550ee9 commit b7d5af0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ const useUtilityClasses = (
classes: Partial<PickersFilledInputClasses> | undefined,
ownerState: PickersFilledInputOwnerState,
) => {
const { disableUnderline } = ownerState;
const { inputHasUnderline } = ownerState;

const slots = {
root: ['root', !disableUnderline && 'underline'],
root: ['root', inputHasUnderline && 'underline'],
input: ['input'],
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import { BoxProps } from '@mui/material/Box';
import { PickersSectionListProps } from '../../PickersSectionList';
import { PickersTextFieldOwnerState } from '../PickersTextField.types';

export interface PickersInputPropsUsedByField
extends Pick<
Expand Down Expand Up @@ -39,10 +38,7 @@ export interface PickersInputPropsUsedByField
export interface PickersInputBaseProps
extends Omit<BoxProps, keyof PickersInputPropsUsedByField>,
PickersInputPropsUsedByField {
/**
* The ownerState to use if it's not PickersTextFieldOwnerState
*/
ownerState?: PickersTextFieldOwnerState & Record<string, any>;
ownerState?: any;
margin?: 'dense' | 'none' | 'normal';
renderSuffix?: (state: {
disabled?: boolean;
Expand Down

0 comments on commit b7d5af0

Please sign in to comment.