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

[@mantine/date] remove placeholder from TimeInput props #6793

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ function Demo() {
return (
<TimeInput
{{props}}
placeholder="Input placeholder"
/>
);
}
`;

function Wrapper(props: any) {
return <TimeInput {...props} placeholder="Input placeholder" />;
return <TimeInput {...props} />;
}

export const configurator: MantineDemo = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface TimeInputProps
extends BoxProps,
__BaseInputProps,
StylesApiProps<TimeInputFactory>,
ElementProps<'input', 'size'> {
ElementProps<'input', 'size' | 'placeholder'> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not remove this as it might be a potential breaking change. Removal from the demo is enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it!

7b882ec

/** Determines whether seconds input should be rendered */
withSeconds?: boolean;

Expand Down
Loading