mirror of
https://github.com/maputnik/editor.git
synced 2026-02-05 20:20:02 +00:00
Bring back title
This commit is contained in:
@@ -12,6 +12,7 @@ export type InputStringProps = {
|
||||
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,
|
||||
|
||||
@@ -316,6 +316,7 @@ export default class DataProperty extends React.Component<DataPropertyProps, Dat
|
||||
<div className="maputnik-data-spec-property-input">
|
||||
<InputString
|
||||
value={this.props.value?.property}
|
||||
title={"Input a data property to base styles off of."}
|
||||
onChange={propVal => this.changeDataProperty("property", propVal)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user