Skip to content

Commit

Permalink
remove testing code in input.type.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanboXue-Amber committed Jan 12, 2024
1 parent 4f3ae12 commit 8ac65a7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import type { ComponentProps, ComponentState, EventData, EventHandler, Slot } from '@fluentui/react-utilities';
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';

export type InputSlots = {
/**
Expand Down Expand Up @@ -27,8 +27,6 @@ export type InputSlots = {
contentAfter?: Slot<'span'>;
};

type OnOpenChangeData = EventData<'click', React.MouseEvent<HTMLInputElement>>;

export type InputProps = Omit<
ComponentProps<Partial<InputSlots>, 'input'>,
// `children` is unsupported. The rest of these native props have customized definitions.
Expand Down Expand Up @@ -82,8 +80,6 @@ export type InputProps = Omit<
// eslint-disable-next-line @fluentui/consistent-callback-type
onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: InputOnChangeData) => void;

onChange2?: EventHandler<OnOpenChangeData>;

/**
* An input can have different text-based [types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#input_types)
* based on the type of value the user will enter.
Expand Down

0 comments on commit 8ac65a7

Please sign in to comment.