-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0990411
commit 8e3ea4f
Showing
9 changed files
with
113 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
packages/x-tree-view/src/TreeItem2LabelInput/TreeItem2LabelInput.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
export interface TreeItem2LabelInputProps extends React.InputHTMLAttributes<HTMLInputElement> { | ||
import * as React from 'react'; | ||
import { MuiCancellableEventHandler } from '../internals/models/MuiCancellableEvent'; | ||
|
||
export interface TreeItem2LabelInputProps { | ||
value?: string; | ||
onChange?: React.ChangeEventHandler<HTMLInputElement>; | ||
/** | ||
* Used to determine if the target of keydown or blur events is the input and prevent the event from propagating to the root. | ||
*/ | ||
'data-element'?: 'labelInput'; | ||
onChange?: React.ChangeEventHandler<HTMLInputElement>; | ||
onKeyDown?: MuiCancellableEventHandler<React.KeyboardEvent<HTMLInputElement>>; | ||
onBlur?: MuiCancellableEventHandler<React.FocusEvent<HTMLInputElement>>; | ||
autoFocus?: true; | ||
type?: 'text'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters