mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 00:54:40 +01:00
custom clear function
This commit is contained in:
@@ -14,6 +14,7 @@ interface IProps {
|
||||
readonly?: boolean
|
||||
placeholder?: string
|
||||
folder?: boolean
|
||||
customClearBehaviour?: () => void
|
||||
}
|
||||
|
||||
interface IState {
|
||||
@@ -95,6 +96,7 @@ export default class DirInput extends React.Component<IProps, IState> {
|
||||
|
||||
if (this.props.onChange) this.props.onChange(text)
|
||||
}}
|
||||
customClearBehaviour={this.props.customClearBehaviour}
|
||||
/>
|
||||
<div className="FileSelectIcon" onClick={this.handleIconClick}>
|
||||
<img src={File} />
|
||||
|
||||
Reference in New Issue
Block a user