mirror of
https://github.com/maputnik/editor.git
synced 2025-12-24 15:10:01 +00:00
Migration of jsx files to tsx 2 (#850)
This is to continue the work of migrating all the jsx files into tsx files. The MO is basically described here: #848. About 7 files to go...
This commit is contained in:
@@ -5,13 +5,14 @@ export type InputStringProps = {
|
||||
value?: string
|
||||
style?: object
|
||||
default?: string
|
||||
onChange?(...args: unknown[]): unknown
|
||||
onInput?(...args: unknown[]): unknown
|
||||
onChange?(value: string | undefined): unknown
|
||||
onInput?(value: string | undefined): unknown
|
||||
multi?: boolean
|
||||
required?: boolean
|
||||
disabled?: boolean
|
||||
spellCheck?: boolean
|
||||
'aria-label'?: string
|
||||
title?: string
|
||||
};
|
||||
|
||||
type InputStringState = {
|
||||
@@ -72,6 +73,7 @@ export default class InputString extends React.Component<InputStringProps, Input
|
||||
style: this.props.style,
|
||||
value: this.state.value === undefined ? "" : this.state.value,
|
||||
placeholder: this.props.default,
|
||||
title: this.props.title,
|
||||
onChange: (e: React.BaseSyntheticEvent<Event, HTMLInputElement, HTMLInputElement>) => {
|
||||
this.setState({
|
||||
editing: true,
|
||||
|
||||
Reference in New Issue
Block a user